Ignore:
Timestamp:
Jan 2, 2007, 11:34:46 AM (19 years ago)
Author:
cinc
Message:

Preliminary implementation of some menu methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/foundation/class_c/nommenu.c

    r151 r161  
    5151
    5252
    53 NOM_Scope PGtkWidget NOMLINK impl_NOMMenu_getMenuHandle(NOMMenu* nomSelf, CORBA_Environment *ev)
     53NOM_Scope PGtkWidget NOMLINK impl_NOMMenu_queryMenuHandle(NOMMenu* nomSelf, CORBA_Environment *ev)
    5454{
    5555  NOMMenuData* nomThis=NOMMenuGetData(nomSelf);
     
    5757  return _pgMenuHandle;
    5858}
    59 
    6059
    6160/* orbit-idl-c-stubs.c, cs_output_stub line 347 */
     
    6564  GtkWidget* menuItem;
    6665
    67   NOMMenu_nomInit_parent(nomSelf,  ev);
     66  NOMMenu_nomInit_parent((NOMObject*)nomSelf,  ev);
    6867  _pgMenuHandle=gtk_menu_new();
    6968
    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);
    7472}
    7573
Note: See TracChangeset for help on using the changeset viewer.