Ignore:
Timestamp:
Dec 10, 2006, 10:16:30 AM (19 years ago)
Author:
cinc
Message:

Some menu improvememnts.

File:
1 edited

Legend:

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

    r149 r151  
    5050#include "nommenu.ih"
    5151
    52 NOM_Scope void NOMLINK impl_NOMMenu_appendMenuItem(NOMMenu* nomSelf, CORBA_Environment *ev)
     52
     53NOM_Scope PGtkWidget NOMLINK impl_NOMMenu_getMenuHandle(NOMMenu* nomSelf, CORBA_Environment *ev)
    5354{
    54 /* NOMMenuData* nomThis=NOMMenuGetData(nomSelf); */
     55  NOMMenuData* nomThis=NOMMenuGetData(nomSelf);
    5556
     57  return _pgMenuHandle;
    5658}
    5759
     
    6163{
    6264  NOMMenuData* nomThis=NOMMenuGetData(nomSelf);
     65  GtkWidget* menuItem;
    6366
    6467  NOMMenu_nomInit_parent(nomSelf,  ev);
    6568  _pgMenuHandle=gtk_menu_new();
     69
     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);
    6674}
    6775
Note: See TracChangeset for help on using the changeset viewer.