Diff of /rexxgtk/trunk/grxcontainer.cpp [r7691] .. [r7692] Maximize Restore

  Switch to unified view

a/rexxgtk/trunk/grxcontainer.cpp b/rexxgtk/trunk/grxcontainer.cpp
...
...
253
            OSELF, self)               // Self
253
            OSELF, self)               // Self
254
{
254
{
255
    GtkWidget *myWidget = gtk_vbox_new(homogeneous, spacing);
255
    GtkWidget *myWidget = gtk_vbox_new(homogeneous, spacing);
256
256
257
    // Save ourself
257
    // Save ourself
258
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
258
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
259
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
259
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
260
260
261
    return 0;
261
    return 0;
262
}
262
}
263
263
...
...
276
            OSELF, self)               // Self
276
            OSELF, self)               // Self
277
{
277
{
278
    GtkVBox *vbox = (GtkVBox *)rxptr;
278
    GtkVBox *vbox = (GtkVBox *)rxptr;
279
279
280
    // Save ourself
280
    // Save ourself
281
    context->SetObjectVariable("CSELF", context->NewPointer(vbox));
281
    context->SendMessage1(self, "set_cself", context->NewPointer(vbox));
282
    g_object_set_data(G_OBJECT(vbox), "OORXOBJECT", self);
282
    g_object_set_data(G_OBJECT(vbox), "OORXOBJECT", self);
283
283
284
    return 0;
284
    return 0;
285
}
285
}
286
286
...
...
299
            OSELF, self)               // Self
299
            OSELF, self)               // Self
300
{
300
{
301
    GtkWidget *myWidget = (GtkWidget *)ptr;
301
    GtkWidget *myWidget = (GtkWidget *)ptr;
302
302
303
    // Save ourself
303
    // Save ourself
304
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
304
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
305
    g_object_set_data(G_OBJECT(ptr), "OORXOBJECT", self);
305
    g_object_set_data(G_OBJECT(ptr), "OORXOBJECT", self);
306
306
307
    return 0;
307
    return 0;
308
}
308
}
309
309
...
...
325
            OSELF, self)               // Self
325
            OSELF, self)               // Self
326
{
326
{
327
    GtkWidget *myWidget = gtk_hbox_new(homogeneous, spacing);
327
    GtkWidget *myWidget = gtk_hbox_new(homogeneous, spacing);
328
328
329
    // Save ourself
329
    // Save ourself
330
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
330
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
331
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
331
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
332
332
333
    return 0;
333
    return 0;
334
}
334
}
335
335
...
...
348
            OSELF, self)               // Self
348
            OSELF, self)               // Self
349
{
349
{
350
    GtkVBox *hbox = (GtkVBox *)rxptr;
350
    GtkVBox *hbox = (GtkVBox *)rxptr;
351
351
352
    // Save ourself
352
    // Save ourself
353
    context->SetObjectVariable("CSELF", context->NewPointer(hbox));
353
    context->SendMessage1(self, "set_cself", context->NewPointer(hbox));
354
    g_object_set_data(G_OBJECT(hbox), "OORXOBJECT", self);
354
    g_object_set_data(G_OBJECT(hbox), "OORXOBJECT", self);
355
355
356
    return 0;
356
    return 0;
357
}
357
}
358
358
...
...
380
            OSELF, self)               // Self
380
            OSELF, self)               // Self
381
{
381
{
382
    GtkWidget *myWidget = gtk_alignment_new(xalign, yalign, xscale, yscale);
382
    GtkWidget *myWidget = gtk_alignment_new(xalign, yalign, xscale, yscale);
383
383
384
    // Save ourself
384
    // Save ourself
385
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
385
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
386
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
386
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
387
387
388
    return 0;
388
    return 0;
389
}
389
}
390
390
...
...
473
    }
473
    }
474
    GtkAdjustment *vadj = (GtkAdjustment *)context->ObjectToCSelf(rxvadj);
474
    GtkAdjustment *vadj = (GtkAdjustment *)context->ObjectToCSelf(rxvadj);
475
    GtkWidget *myWidget = gtk_viewport_new(hadj, vadj);
475
    GtkWidget *myWidget = gtk_viewport_new(hadj, vadj);
476
476
477
    // Save ourself
477
    // Save ourself
478
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
478
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
479
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
479
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
480
480
481
    return 0;
481
    return 0;
482
}
482
}
483
483