ui/gtk/menu.c

branch
newapi
changeset 263
a0ea718ab1d8
parent 255
ebdce2bb62be
child 275
132c7bcc6997
equal deleted inserted replaced
262:81778b9589d0 263:a0ea718ab1d8
119 } 119 }
120 120
121 gtk_menu_shell_append(GTK_MENU_SHELL(parent), widget); 121 gtk_menu_shell_append(GTK_MENU_SHELL(parent), widget);
122 122
123 if(i->groups) { 123 if(i->groups) {
124 uic_add_group_widget(obj->ctx, widget, (ui_enablefunc)ui_set_enabled, i->groups); 124 CxList *groups = cxArrayListCreateSimple(sizeof(int), i->ngroups);
125 cxListAddArray(groups, i->groups, i->ngroups);
126 uic_add_group_widget(obj->ctx, widget, (ui_enablefunc)ui_set_enabled, groups);
127 cxListDestroy(groups);
125 } 128 }
126 } 129 }
127 130
128 /* 131 /*
129 void add_menuitem_st_widget( 132 void add_menuitem_st_widget(

mercurial