summaryrefslogtreecommitdiff
path: root/apps/main_menu.c
diff options
context:
space:
mode:
authorChristi Scarborough <christi@coraline.org>2005-11-18 15:33:05 +0000
committerChristi Scarborough <christi@coraline.org>2005-11-18 15:33:05 +0000
commit32a43e2ee688bf8b3c930685400a52910c512a1e (patch)
tree8675fddb2d926f0dabb65adb798033036a22c18d /apps/main_menu.c
parente16ebf1a50b9692e93f44633138903418ef93526 (diff)
downloadrockbox-32a43e2ee688bf8b3c930685400a52910c512a1e.tar.gz
rockbox-32a43e2ee688bf8b3c930685400a52910c512a1e.zip
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
Diffstat (limited to 'apps/main_menu.c')
-rw-r--r--apps/main_menu.c10
1 files changed, 9 insertions, 1 deletions
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)
241 return rockbox_browse(PLUGIN_DIR, SHOW_PLUGINS); 241 return rockbox_browse(PLUGIN_DIR, SHOW_PLUGINS);
242} 242}
243 243
244static bool custom_theme_browse(void)
245{
246 return rockbox_browse(THEME_DIR, SHOW_CFG);
247}
248
244#ifdef HAVE_RECORDING 249#ifdef HAVE_RECORDING
245 250
246static bool recording_settings(void) 251static bool recording_settings(void)
@@ -311,7 +316,7 @@ bool main_menu(void)
311 int i = 0; 316 int i = 0;
312 317
313 /* main menu */ 318 /* main menu */
314 struct menu_item items[10]; 319 struct menu_item items[11];
315 320
316 items[i].desc = ID2P(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS); 321 items[i].desc = ID2P(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS);
317 items[i++].function = bookmark_mrb_load; 322 items[i++].function = bookmark_mrb_load;
@@ -325,6 +330,9 @@ bool main_menu(void)
325 items[i].desc = ID2P(LANG_MANAGE_MENU); 330 items[i].desc = ID2P(LANG_MANAGE_MENU);
326 items[i++].function = manage_settings_menu; 331 items[i++].function = manage_settings_menu;
327 332
333 items[i].desc = ID2P(LANG_CUSTOM_THEME);
334 items[i++].function = custom_theme_browse;
335
328#ifdef CONFIG_TUNER 336#ifdef CONFIG_TUNER
329 if(radio_hardware_present()) { 337 if(radio_hardware_present()) {
330 items[i].desc = ID2P(LANG_FM_RADIO); 338 items[i].desc = ID2P(LANG_FM_RADIO);