diff options
author | Dan Everton <dan@iocaine.org> | 2006-08-15 12:23:55 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2006-08-15 12:23:55 +0000 |
commit | c0f8b187706364f5e4bda2ac26750d14454c901d (patch) | |
tree | 7328f5562f6dc7cefa8b3f4504b4cde9ddf89fd5 /apps/tree.c | |
parent | 8570911e4ee0ec30ce73581518ad9b5afe00a15e (diff) | |
download | rockbox-c0f8b187706364f5e4bda2ac26750d14454c901d.tar.gz rockbox-c0f8b187706364f5e4bda2ac26750d14454c901d.zip |
A few changes and fixes for the title in the file view: disable title string in tagcache view, strip leading / from current directory title, center title properly, scroll title if it's too long.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10581 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c index 72e62caf2b..2f1d140ad9 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -347,10 +347,13 @@ 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) { | 350 | if (!id3db) { |
351 | gui_synclist_set_title(&tree_lists, tc.currdir); | 351 | if (global_settings.show_path_in_browser == SHOW_PATH_FULL) { |
352 | } else if (global_settings.show_path_in_browser == SHOW_PATH_CURRENT) { | 352 | gui_synclist_set_title(&tree_lists, tc.currdir); |
353 | gui_synclist_set_title(&tree_lists, strrchr(tc.currdir, '/')); | 353 | } else if (global_settings.show_path_in_browser == SHOW_PATH_CURRENT) { |
354 | gui_synclist_set_title(&tree_lists, | ||
355 | tc.dirlevel > 0 ? strrchr(tc.currdir, '/') + 1 : "/"); | ||
356 | } | ||
354 | } | 357 | } |
355 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); | 358 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); |
356 | gui_synclist_set_icon_callback(&tree_lists, | 359 | gui_synclist_set_icon_callback(&tree_lists, |