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/tree.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/tree.c')
-rw-r--r-- | apps/tree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index 484ed672cd..72e62caf2b 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -347,6 +347,11 @@ static int update_dir(void) | |||
347 | gui_syncsplash(HZ, true, str(LANG_SHOWDIR_BUFFER_FULL)); | 347 | gui_syncsplash(HZ, true, str(LANG_SHOWDIR_BUFFER_FULL)); |
348 | } | 348 | } |
349 | } | 349 | } |
350 | if (global_settings.show_path_in_browser == SHOW_PATH_FULL) { | ||
351 | gui_synclist_set_title(&tree_lists, tc.currdir); | ||
352 | } else if (global_settings.show_path_in_browser == SHOW_PATH_CURRENT) { | ||
353 | gui_synclist_set_title(&tree_lists, strrchr(tc.currdir, '/')); | ||
354 | } | ||
350 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); | 355 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); |
351 | gui_synclist_set_icon_callback(&tree_lists, | 356 | gui_synclist_set_icon_callback(&tree_lists, |
352 | global_settings.show_icons?&tree_get_fileicon:NULL); | 357 | global_settings.show_icons?&tree_get_fileicon:NULL); |