ui/gtk/menu.h

changeset 101
7b3a3130be44
parent 88
e27526429d85
equal deleted inserted replaced
100:d2bd73d28ff1 101:7b3a3130be44
40 #endif 40 #endif
41 41
42 UIMENU ui_create_menu(UiMenuBuilder *builder, UiObject *obj); 42 UIMENU ui_create_menu(UiMenuBuilder *builder, UiObject *obj);
43 void ui_widget_set_contextmenu(GtkWidget *widget, UIMENU menu); 43 void ui_widget_set_contextmenu(GtkWidget *widget, UIMENU menu);
44 44
45 GtkWidget *ui_create_menubar(UiObject *obj);
46
45 #if GTK_MAJOR_VERSION <= 3 47 #if GTK_MAJOR_VERSION <= 3
46 48
47 typedef struct UiActiveMenuItemList UiActiveMenuItemList; 49 typedef struct UiActiveMenuItemList UiActiveMenuItemList;
48 50
49 typedef void(*ui_menu_add_f)(GtkWidget *, int, UiMenuItemI*, UiObject*); 51 typedef void(*ui_menu_add_f)(GtkWidget *, int, UiMenuItemI*, UiObject*);
56 UiList *list; 58 UiList *list;
57 ui_getvaluefunc getvalue; 59 ui_getvaluefunc getvalue;
58 ui_callback callback; 60 ui_callback callback;
59 void *userdata; 61 void *userdata;
60 }; 62 };
61
62 GtkWidget *ui_create_menubar(UiObject *obj);
63 63
64 void ui_add_menu_items(GtkWidget *parent, int i, UiMenu *menu, UiObject *obj); 64 void ui_add_menu_items(GtkWidget *parent, int i, UiMenu *menu, UiObject *obj);
65 65
66 void add_menu_widget(GtkWidget *parent, int i, UiMenuItemI *item, UiObject *obj); 66 void add_menu_widget(GtkWidget *parent, int i, UiMenuItemI *item, UiObject *obj);
67 void add_menuitem_widget(GtkWidget *parent, int i, UiMenuItemI *item, UiObject *obj); 67 void add_menuitem_widget(GtkWidget *parent, int i, UiMenuItemI *item, UiObject *obj);

mercurial