summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-08-16 13:55:37 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-08-16 13:55:37 +0000
commitda727b5acec72f93292a86bbecf7bb502e5a8b76 (patch)
tree7450400dcb664ee4e659d0f1abaedf8229c2200c
parentfc6d57f9a3a5b6022d43aec63c73e41d62c0e41a (diff)
downloadrockbox-da727b5acec72f93292a86bbecf7bb502e5a8b76.zip
rockbox-da727b5acec72f93292a86bbecf7bb502e5a8b76.tar.gz
rockbox-da727b5acec72f93292a86bbecf7bb502e5a8b76.tar.bz2
rockbox-da727b5acec72f93292a86bbecf7bb502e5a8b76.tar.xz
Show the plugin category name in the list title in the plugin browsers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14370 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/apps/tree.c b/apps/tree.c
index d6c6d3e..5122f55 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -368,7 +368,20 @@ static int update_dir(void)
else
#endif
{
- if (global_settings.show_path_in_browser == SHOW_PATH_FULL)
+ if (global_settings.show_path_in_browser &&
+ *(tc.dirfilter) == SHOW_PLUGINS)
+ {
+ char *title;
+ if (!strcmp(tc.currdir, PLUGIN_GAMES_DIR))
+ title = str(LANG_PLUGIN_GAMES);
+ else if (!strcmp(tc.currdir, PLUGIN_APPS_DIR))
+ title = str(LANG_PLUGIN_APPS);
+ else if (!strcmp(tc.currdir, PLUGIN_DEMOS_DIR))
+ title = str(LANG_PLUGIN_DEMOS);
+ else title = str(LANG_PLUGINS);
+ gui_synclist_set_title(&tree_lists, title, Icon_Plugin);
+ }
+ else if (global_settings.show_path_in_browser == SHOW_PATH_FULL)
{
gui_synclist_set_title(&tree_lists, tc.currdir,
filetype_get_icon(ATTR_DIRECTORY));
@@ -382,12 +395,6 @@ static int update_dir(void)
gui_synclist_set_title(&tree_lists, str(LANG_DIR_BROWSER),
filetype_get_icon(ATTR_DIRECTORY));
}
- else if(0 == strcasecmp(tc.currdir, PLUGIN_DIR))
- {
- /* Display "Plugins" for the rocks dir */
- gui_synclist_set_title(&tree_lists, str(LANG_PLUGINS),
- filetype_get_icon(ATTR_DIRECTORY));
- }
else
gui_synclist_set_title(&tree_lists, title,
filetype_get_icon(ATTR_DIRECTORY));