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

  Switch to unified view

a/rexxgtk/trunk/grxbutton.cpp b/rexxgtk/trunk/grxbutton.cpp
...
...
87
            OSELF, self)               // Self
87
            OSELF, self)               // Self
88
{
88
{
89
    GtkWidget *myWidget = gtk_button_new();
89
    GtkWidget *myWidget = gtk_button_new();
90
90
91
    // Save ourself
91
    // Save ourself
92
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
92
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
93
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
93
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
94
94
95
    return 0;
95
    return 0;
96
}
96
}
97
97
...
...
189
            OSELF, self)               // Self
189
            OSELF, self)               // Self
190
{
190
{
191
    GtkWidget *myWidget = gtk_toggle_button_new();
191
    GtkWidget *myWidget = gtk_toggle_button_new();
192
192
193
    // Save ourself
193
    // Save ourself
194
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
194
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
195
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
195
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
196
196
197
    return 0;
197
    return 0;
198
}
198
}
199
199
...
...
288
    else {
288
    else {
289
        myWidget = gtk_check_button_new();
289
        myWidget = gtk_check_button_new();
290
    }
290
    }
291
291
292
    // Save ourself
292
    // Save ourself
293
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
293
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
294
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
294
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
295
295
296
    return 0;
296
    return 0;
297
}
297
}
298
298
...
...
337
    if (argumentExists(2)) {
337
    if (argumentExists(2)) {
338
        gtk_button_set_label(GTK_BUTTON(myWidget), text);
338
        gtk_button_set_label(GTK_BUTTON(myWidget), text);
339
    }
339
    }
340
340
341
    // Save ourself
341
    // Save ourself
342
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
342
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
343
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
343
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
344
344
345
    return 0;
345
    return 0;
346
}
346
}
347
347
...
...
369
        gdk_color_parse(colorstr, &color);
369
        gdk_color_parse(colorstr, &color);
370
        myWidget = gtk_color_button_new_with_color(&color);
370
        myWidget = gtk_color_button_new_with_color(&color);
371
    }
371
    }
372
372
373
    // Save ourself
373
    // Save ourself
374
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
374
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
375
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
375
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
376
376
377
    return 0;
377
    return 0;
378
}
378
}
379
379
...
...
447
            OSELF, self)               // Self
447
            OSELF, self)               // Self
448
{
448
{
449
    GtkWidget *myWidget = gtk_file_chooser_button_new(title, (GtkFileChooserAction)action);
449
    GtkWidget *myWidget = gtk_file_chooser_button_new(title, (GtkFileChooserAction)action);
450
450
451
    // Save ourself
451
    // Save ourself
452
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
452
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
453
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
453
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
454
454
455
    return 0;
455
    return 0;
456
}
456
}
457
457
...
...
467
            OSELF, self)               // Self
467
            OSELF, self)               // Self
468
{
468
{
469
    GtkWidget *myWidget = gtk_font_button_new();
469
    GtkWidget *myWidget = gtk_font_button_new();
470
470
471
    // Save ourself
471
    // Save ourself
472
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
472
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
473
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
473
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
474
474
475
    return 0;
475
    return 0;
476
}
476
}
477
477

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks