diff options
author | Dan Everton <dan@iocaine.org> | 2006-08-15 09:38:13 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2006-08-15 09:38:13 +0000 |
commit | eb1dd38960214cb5581b9d39ef4fe73e2a050090 (patch) | |
tree | 225cdbae19e67685ba898f0559fa25a7177f91bd /apps/settings_menu.c | |
parent | 1792170633842d274d623dcdd7265f2e55ff2fc9 (diff) | |
download | rockbox-eb1dd38960214cb5581b9d39ef4fe73e2a050090.tar.gz rockbox-eb1dd38960214cb5581b9d39ef4fe73e2a050090.zip |
Add support for displaying the the current path or the full path (or neither) in the file browser. Check General Settings -> File View -> Show Path for the options.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10578 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 6a11e723b1..48e8c1dda5 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c | |||
@@ -98,6 +98,19 @@ static bool show_icons(void) | |||
98 | return set_bool( (char *)str(LANG_SHOW_ICONS), &global_settings.show_icons ); | 98 | return set_bool( (char *)str(LANG_SHOW_ICONS), &global_settings.show_icons ); |
99 | } | 99 | } |
100 | 100 | ||
101 | static bool show_path(void) | ||
102 | { | ||
103 | static const struct opt_items names[3] = { | ||
104 | { STR(LANG_OFF) }, | ||
105 | { STR(LANG_SHOW_PATH_CURRENT) }, | ||
106 | { STR(LANG_SHOW_PATH_FULL) }, | ||
107 | }; | ||
108 | |||
109 | return set_option(str(LANG_SHOW_PATH), | ||
110 | &global_settings.show_path_in_browser, | ||
111 | INT, names, 3, NULL); | ||
112 | } | ||
113 | |||
101 | /** | 114 | /** |
102 | * Menu to set the option to scroll paginated | 115 | * Menu to set the option to scroll paginated |
103 | */ | 116 | */ |
@@ -1737,6 +1750,7 @@ static bool fileview_settings_menu(void) | |||
1737 | { ID2P(LANG_FILTER), dir_filter }, | 1750 | { ID2P(LANG_FILTER), dir_filter }, |
1738 | { ID2P(LANG_FOLLOW), browse_current }, | 1751 | { ID2P(LANG_FOLLOW), browse_current }, |
1739 | { ID2P(LANG_SHOW_ICONS), show_icons }, | 1752 | { ID2P(LANG_SHOW_ICONS), show_icons }, |
1753 | { ID2P(LANG_SHOW_PATH), show_path }, | ||
1740 | { ID2P(LANG_TAGCACHE), tagcache_settings_menu}, | 1754 | { ID2P(LANG_TAGCACHE), tagcache_settings_menu}, |
1741 | }; | 1755 | }; |
1742 | 1756 | ||