From 32a43e2ee688bf8b3c930685400a52910c512a1e Mon Sep 17 00:00:00 2001 From: Christi Scarborough Date: Fri, 18 Nov 2005 15:33:05 +0000 Subject: When fixing things is it better to do it in a way that causes them to actually work. Some more bugs in wpsbuild.pl squashed. Also, themes moved to the main menu. Resetting to default themes now works properly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7965 a1c6a512-1295-4272-9138-f99709370657 --- apps/main_menu.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'apps/main_menu.c') diff --git a/apps/main_menu.c b/apps/main_menu.c index f76c211f0a..262dd61a20 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -241,6 +241,11 @@ static bool plugin_browse(void) return rockbox_browse(PLUGIN_DIR, SHOW_PLUGINS); } +static bool custom_theme_browse(void) +{ + return rockbox_browse(THEME_DIR, SHOW_CFG); +} + #ifdef HAVE_RECORDING static bool recording_settings(void) @@ -311,7 +316,7 @@ bool main_menu(void) int i = 0; /* main menu */ - struct menu_item items[10]; + struct menu_item items[11]; items[i].desc = ID2P(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS); items[i++].function = bookmark_mrb_load; @@ -325,6 +330,9 @@ bool main_menu(void) items[i].desc = ID2P(LANG_MANAGE_MENU); items[i++].function = manage_settings_menu; + items[i].desc = ID2P(LANG_CUSTOM_THEME); + items[i++].function = custom_theme_browse; + #ifdef CONFIG_TUNER if(radio_hardware_present()) { items[i].desc = ID2P(LANG_FM_RADIO); -- cgit v1.2.3