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.zip
rockbox-32a43e2ee688bf8b3c930685400a52910c512a1e.tar.gz
rockbox-32a43e2ee688bf8b3c930685400a52910c512a1e.tar.bz2
rockbox-32a43e2ee688bf8b3c930685400a52910c512a1e.tar.xz
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 f76c211..262dd61 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);