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

  Switch to unified view

a/rexxgtk/trunk/grxdialog.cpp b/rexxgtk/trunk/grxdialog.cpp
...
...
138
        context->ObjectToInt32(context->ArrayAt(args, i), &rid);
138
        context->ObjectToInt32(context->ArrayAt(args, i), &rid);
139
        gtk_dialog_add_button(GTK_DIALOG(myWidget), bid, rid);
139
        gtk_dialog_add_button(GTK_DIALOG(myWidget), bid, rid);
140
    }
140
    }
141
141
142
    // Save ourself
142
    // Save ourself
143
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
143
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
144
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
144
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
145
145
146
    // create the vbox object
146
    // create the vbox object
147
    vbox = GTK_DIALOG(myWidget)->vbox;
147
    vbox = GTK_DIALOG(myWidget)->vbox;
148
    context->SendMessage1(self, "VBOX=", context->NewPointer(vbox));
148
    context->SendMessage1(self, "VBOX=", context->NewPointer(vbox));
...
...
301
    myWidget = gtk_message_dialog_new(myParent, (GtkDialogFlags)flags,
301
    myWidget = gtk_message_dialog_new(myParent, (GtkDialogFlags)flags,
302
                                      (GtkMessageType)type,
302
                                      (GtkMessageType)type,
303
                                      (GtkButtonsType)bset, text);
303
                                      (GtkButtonsType)bset, text);
304
304
305
    // Save ourself
305
    // Save ourself
306
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
306
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
307
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
307
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
308
308
309
    return 0;
309
    return 0;
310
}
310
}
311
311
...
...
362
        context->ObjectToInt32(context->ArrayAt(args, i), &rid);
362
        context->ObjectToInt32(context->ArrayAt(args, i), &rid);
363
        gtk_dialog_add_button(GTK_DIALOG(myWidget), bid, rid);
363
        gtk_dialog_add_button(GTK_DIALOG(myWidget), bid, rid);
364
    }
364
    }
365
365
366
    // Save ourself
366
    // Save ourself
367
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
367
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
368
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
368
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
369
369
370
    return 0;
370
    return 0;
371
}
371
}
372
372
...
...
387
            OSELF, self)               // Self
387
            OSELF, self)               // Self
388
{
388
{
389
    GtkWidget *myWidget = gtk_font_selection_dialog_new(title);
389
    GtkWidget *myWidget = gtk_font_selection_dialog_new(title);
390
390
391
    // Save ourself
391
    // Save ourself
392
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
392
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
393
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
393
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
394
394
395
    return 0;
395
    return 0;
396
}
396
}
397
397
...
...
453
RexxMethod1(int,                       // Return type
453
RexxMethod1(int,                       // Return type
454
            GrxAboutDialogNew,         // Object_method name
454
            GrxAboutDialogNew,         // Object_method name
455
            OSELF, self)               // Self
455
            OSELF, self)               // Self
456
{
456
{
457
    GtkWidget *myWidget = gtk_about_dialog_new();
457
    GtkWidget *myWidget = gtk_about_dialog_new();
458
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
458
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
459
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
459
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
460
460
461
    return 0;
461
    return 0;
462
}
462
}
463
463
...
...
771
    GtkWidget *myWidget = gtk_color_selection_dialog_new(title);
771
    GtkWidget *myWidget = gtk_color_selection_dialog_new(title);
772
    GtkWidget *colorsel = GTK_COLOR_SELECTION_DIALOG(myWidget)->colorsel;
772
    GtkWidget *colorsel = GTK_COLOR_SELECTION_DIALOG(myWidget)->colorsel;
773
    gtk_color_selection_set_has_opacity_control(GTK_COLOR_SELECTION(colorsel), TRUE);
773
    gtk_color_selection_set_has_opacity_control(GTK_COLOR_SELECTION(colorsel), TRUE);
774
774
775
    // Save ourself
775
    // Save ourself
776
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
776
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
777
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
777
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
778
778
779
    return 0;
779
    return 0;
780
}
780
}
781
781