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

Switch to unified view

a/rexxgtk/trunk/grxmenuitem.cpp b/rexxgtk/trunk/grxmenuitem.cpp
...
...
116
            myWidget = gtk_menu_item_new_with_label(label);
116
            myWidget = gtk_menu_item_new_with_label(label);
117
        }
117
        }
118
    }
118
    }
119
119
120
    // Save ourself
120
    // Save ourself
121
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
121
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
122
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
122
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
123
123
124
    return 0;
124
    return 0;
125
}
125
}
126
126
...
...
306
            OSELF, self)               // Self
306
            OSELF, self)               // Self
307
{
307
{
308
    GtkWidget *myWidget = gtk_separator_menu_item_new();
308
    GtkWidget *myWidget = gtk_separator_menu_item_new();
309
309
310
    // Save ourself
310
    // Save ourself
311
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
311
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
312
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
312
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
313
313
314
    return 0;
314
    return 0;
315
}
315
}
316
316
...
...
346
        GtkAccelGroup *accelgrpWidget = (GtkAccelGroup *)context->ObjectToCSelf(accelgrp);
346
        GtkAccelGroup *accelgrpWidget = (GtkAccelGroup *)context->ObjectToCSelf(accelgrp);
347
        myWidget = gtk_image_menu_item_new_from_stock(label, accelgrpWidget);
347
        myWidget = gtk_image_menu_item_new_from_stock(label, accelgrpWidget);
348
    }
348
    }
349
349
350
    // Save ourself
350
    // Save ourself
351
    context->SetObjectVariable("CSELF", context->NewPointer(myWidget));
351
    context->SendMessage1(self, "set_cself", context->NewPointer(myWidget));
352
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
352
    g_object_set_data(G_OBJECT(myWidget), "OORXOBJECT", self);
353
353
354
    return 0;
354
    return 0;
355
}
355
}
356
356

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

Sign up for the SourceForge newsletter:





No, thanks