diff options
author | Kevin Ferrare <kevin@rockbox.org> | 2005-11-16 17:23:49 +0000 |
---|---|---|
committer | Kevin Ferrare <kevin@rockbox.org> | 2005-11-16 17:23:49 +0000 |
commit | 15046f99b3840c07bdd9d52e7014c6e775267c55 (patch) | |
tree | a34131db64c53b7bb9353e870cd5266d0dbc9e2d /apps/tree.c | |
parent | 2a7546ab752dd10901aa7df10d93cd286a68d4bf (diff) | |
download | rockbox-15046f99b3840c07bdd9d52e7014c6e775267c55.tar.gz rockbox-15046f99b3840c07bdd9d52e7014c6e775267c55.zip |
show/hide icons now works properly in playlist viewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7911 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index 5b9d5b04a6..bfeac6c545 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -229,7 +229,9 @@ void browse_root(void) | |||
229 | gui_buttonbar_set_display(&tree_buttonbar, &(screens[SCREEN_MAIN]) ); | 229 | gui_buttonbar_set_display(&tree_buttonbar, &(screens[SCREEN_MAIN]) ); |
230 | #endif | 230 | #endif |
231 | gui_syncstatusbar_init(&statusbars); | 231 | gui_syncstatusbar_init(&statusbars); |
232 | gui_synclist_init(&tree_lists, &tree_get_fileicon, &tree_get_filename, &tc); | 232 | gui_synclist_init(&tree_lists, &tree_get_filename, &tc); |
233 | gui_synclist_set_icon_callback(&tree_lists, | ||
234 | global_settings.show_icons?&tree_get_fileicon:NULL); | ||
233 | #ifndef SIMULATOR | 235 | #ifndef SIMULATOR |
234 | dirbrowse(); | 236 | dirbrowse(); |
235 | #else | 237 | #else |
@@ -338,6 +340,8 @@ static int update_dir(void) | |||
338 | } | 340 | } |
339 | } | 341 | } |
340 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); | 342 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); |
343 | gui_synclist_set_icon_callback(&tree_lists, | ||
344 | global_settings.show_icons?&tree_get_fileicon:NULL); | ||
341 | if( tc.selected_item >= tc.filesindir) | 345 | if( tc.selected_item >= tc.filesindir) |
342 | tc.selected_item=tc.filesindir-1; | 346 | tc.selected_item=tc.filesindir-1; |
343 | 347 | ||