From daf66940b1a06de2681c91dcb8cf72d95a234e86 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sat, 17 Mar 2007 12:33:34 +0000 Subject: Unify the way functions are called from menus. Optionally, the functions return value can be checked for a value to tell the menu to quit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12821 a1c6a512-1295-4272-9138-f99709370657 --- apps/root_menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/root_menu.c') diff --git a/apps/root_menu.c b/apps/root_menu.c index 74b9df6..451d400 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c @@ -327,7 +327,8 @@ static int do_shutdown(void) sys_poweroff(); return 0; } -MENUITEM_FUNCTION(do_shutdown_item, ID2P(LANG_SHUTDOWN), do_shutdown, NULL, Icon_NOICON); +MENUITEM_FUNCTION(do_shutdown_item, 0, ID2P(LANG_SHUTDOWN), + do_shutdown, NULL, 0, NULL, Icon_NOICON); #endif MAKE_MENU(root_menu_, ID2P(LANG_ROCKBOX_TITLE), NULL, Icon_Rockbox, -- cgit v1.1