curwidget ewl_widget_name_find menuitem5 ewl_menu_collapse EWL_MENU cu

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
curwidget = ewl_widget_name_find("menuitem5");
ewl_menu_collapse(EWL_MENU(curwidget));
curwidget = ewl_widget_name_find("okmenu");
ewl_menu_collapse(EWL_MENU(curwidget));
/* roots are counted from zero */
index--;
/* roots are counted from zero */
index--;
if (g_roots->nroots < index)
return;