Changeset 161 for trunk/foundation/class_c/nommenu.c
- Timestamp:
- Jan 2, 2007, 11:34:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/foundation/class_c/nommenu.c
r151 r161 51 51 52 52 53 NOM_Scope PGtkWidget NOMLINK impl_NOMMenu_ getMenuHandle(NOMMenu* nomSelf, CORBA_Environment *ev)53 NOM_Scope PGtkWidget NOMLINK impl_NOMMenu_queryMenuHandle(NOMMenu* nomSelf, CORBA_Environment *ev) 54 54 { 55 55 NOMMenuData* nomThis=NOMMenuGetData(nomSelf); … … 57 57 return _pgMenuHandle; 58 58 } 59 60 59 61 60 /* orbit-idl-c-stubs.c, cs_output_stub line 347 */ … … 65 64 GtkWidget* menuItem; 66 65 67 NOMMenu_nomInit_parent( nomSelf, ev);66 NOMMenu_nomInit_parent((NOMObject*)nomSelf, ev); 68 67 _pgMenuHandle=gtk_menu_new(); 69 68 70 /* This is only for testing... */ 71 menuItem=gtk_menu_item_new_with_label("Blabbla"); 72 gtk_widget_show(menuItem); 73 gtk_menu_shell_append(GTK_MENU_SHELL(_pgMenuHandle), menuItem); 69 /* Make sure we have a reference to the class so the garbage collector 70 doesn't unload us */ 71 g_object_set_data(G_OBJECT(_pgMenuHandle), NOMOBJECT_KEY_STRING, nomSelf); 74 72 } 75 73
Note:
See TracChangeset
for help on using the changeset viewer.