ui/gtk/menu.c

changeset 42
9af327d0e0e4
parent 35
834d9c15a69f
equal deleted inserted replaced
41:7ada3db4cfa8 42:9af327d0e0e4
40 #include "container.h" 40 #include "container.h"
41 41
42 #include <cx/linked_list.h> 42 #include <cx/linked_list.h>
43 #include <cx/array_list.h> 43 #include <cx/array_list.h>
44 44
45 #if UI_GTK2 || UI_GTK3
46
45 47
46 static ui_menu_add_f createMenuItem[] = { 48 static ui_menu_add_f createMenuItem[] = {
47 /* UI_MENU */ add_menu_widget, 49 /* UI_MENU */ add_menu_widget,
48 /* UI_MENU_ITEM */ add_menuitem_widget, 50 /* UI_MENU_ITEM */ add_menuitem_widget,
49 /* UI_MENU_CHECK_ITEM */ add_checkitem_widget, 51 /* UI_MENU_CHECK_ITEM */ add_checkitem_widget,
496 if(groups) { 498 if(groups) {
497 uic_add_group_widget(obj->ctx, widget, (ui_enablefunc)ui_set_enabled, groups); 499 uic_add_group_widget(obj->ctx, widget, (ui_enablefunc)ui_set_enabled, groups);
498 cxListDestroy(groups); 500 cxListDestroy(groups);
499 } 501 }
500 } 502 }
503
504 #endif /* UI_GTK2 || UI_GTK3 */

mercurial