summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-09-24 19:12:09 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-09-24 19:12:09 +0000
commita7dcf912e1be349da3dadeaf235ee4faf5e9dbaa (patch)
tree5bc79ed6c56a86ffded950f3679368408c0c758e /apps/settings_menu.c
parentcae1d3b115821b055bd528f08ee5179f2d85ff8f (diff)
downloadrockbox-a7dcf912e1be349da3dadeaf235ee4faf5e9dbaa.zip
rockbox-a7dcf912e1be349da3dadeaf235ee4faf5e9dbaa.tar.gz
rockbox-a7dcf912e1be349da3dadeaf235ee4faf5e9dbaa.tar.bz2
rockbox-a7dcf912e1be349da3dadeaf235ee4faf5e9dbaa.tar.xz
Merged 'mp3 filter' and 'show hidden files' into a single filter option.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2405 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r--apps/settings_menu.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 41afc72..8aba4bc 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -38,14 +38,6 @@
#include "ata.h"
#include "lang.h"
-static bool show_hidden_files(void)
-{
- return set_bool_options( str(LANG_HIDDEN),
- &global_settings.show_hidden_files,
- str(LANG_HIDDEN_SHOW),
- str(LANG_HIDDEN_HIDE) );
-}
-
static bool contrast(void)
{
return set_int( str(LANG_CONTRAST), "", &global_settings.contrast,
@@ -64,9 +56,13 @@ static bool play_selected(void)
return set_bool( str(LANG_PLAY_SELECTED), &global_settings.play_selected );
}
-static bool mp3_filter(void)
+static bool dir_filter(void)
{
- return set_bool( str(LANG_MP3FILTER), &global_settings.mp3filter );
+ char* names[] = { str(LANG_FILTER_ALL),
+ str(LANG_FILTER_SUPPORTED),
+ str(LANG_FILTER_MUSIC) };
+ return set_option( str(LANG_FILTER), &global_settings.dirfilter,
+ names, 3, NULL );
}
static bool sort_case(void)
@@ -298,8 +294,7 @@ static bool fileview_settings_menu(void)
struct menu_items items[] = {
{ str(LANG_CASE_MENU), sort_case },
- { str(LANG_MP3FILTER), mp3_filter },
- { str(LANG_HIDDEN), show_hidden_files },
+ { str(LANG_FILTER), dir_filter },
{ str(LANG_FOLLOW), browse_current },
};