From: <enl...@li...> - 2005-10-11 13:43:09
|
Enlightenment CVS committal Author : handyande Project : misc Module : enotes Dir : misc/enotes/src Modified Files: menu.c Log Message: Update to ewl api =================================================================== RCS file: /cvsroot/enlightenment/misc/enotes/src/menu.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- menu.c 6 Oct 2004 17:12:34 -0000 1.1 +++ menu.c 11 Oct 2005 13:43:19 -0000 1.2 @@ -14,7 +14,8 @@ p->win = ewl_window_new(); ewl_window_move((Ewl_Window *) p->win, 1, 1); - p->menu = ewl_imenu_new(NULL, "Note Menu"); + p->menu = ewl_imenu_new(); + ewl_menu_item_text_set(EWL_MENU_ITEM(p->menu), "Note Menu"); ewl_container_child_append((Ewl_Container *) p->win, p->menu); return (p); @@ -62,7 +63,8 @@ item->cb = func; item->data = data; - item->item = ewl_menu_item_new(NULL, name); + item->item = ewl_menu_item_new(); + ewl_menu_item_text_set(EWL_MENU_ITEM(item->item), name); ewl_container_child_append((Ewl_Container *) menu->menu, item->item); ewl_callback_append(item->item, EWL_CALLBACK_SELECT, cb_menu_process, item); |