diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/filetree.c | 9 | ||||
-rw-r--r-- | apps/tree.c | 8 | ||||
-rw-r--r-- | apps/tree.h | 1 |
3 files changed, 11 insertions, 7 deletions
diff --git a/apps/filetree.c b/apps/filetree.c index ec7932435d..d7e77226e5 100644 --- a/apps/filetree.c +++ b/apps/filetree.c | |||
@@ -181,11 +181,6 @@ static void check_file_thumbnails(struct tree_context* c) | |||
181 | closedir(dir); | 181 | closedir(dir); |
182 | } | 182 | } |
183 | 183 | ||
184 | static void filetree_drawlists(void) | ||
185 | { | ||
186 | gui_synclist_draw(&tree_lists); | ||
187 | } | ||
188 | |||
189 | /* support function for qsort() */ | 184 | /* support function for qsort() */ |
190 | static int compare(const void* p1, const void* p2) | 185 | static int compare(const void* p1, const void* p2) |
191 | { | 186 | { |
@@ -519,7 +514,7 @@ int ft_enter(struct tree_context* c) | |||
519 | send_event(GUI_EVENT_REFRESH, NULL); | 514 | send_event(GUI_EVENT_REFRESH, NULL); |
520 | /* for the statusbar */ | 515 | /* for the statusbar */ |
521 | send_event(GUI_EVENT_ACTIONUPDATE, (void*)true); | 516 | send_event(GUI_EVENT_ACTIONUPDATE, (void*)true); |
522 | filetree_drawlists(); | 517 | tree_drawlists(); |
523 | splash(HZ, ID2P(LANG_SETTINGS_LOADED)); | 518 | splash(HZ, ID2P(LANG_SETTINGS_LOADED)); |
524 | break; | 519 | break; |
525 | 520 | ||
@@ -629,7 +624,7 @@ int ft_enter(struct tree_context* c) | |||
629 | } | 624 | } |
630 | } | 625 | } |
631 | 626 | ||
632 | send_event(GUI_EVENT_REFRESH, filetree_drawlists); | 627 | send_event(GUI_EVENT_REFRESH, tree_drawlists); |
633 | 628 | ||
634 | if ( play ) { | 629 | if ( play ) { |
635 | /* the resume_index must always be the index in the | 630 | /* the resume_index must always be the index in the |
diff --git a/apps/tree.c b/apps/tree.c index 228f491c15..3570798706 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -72,6 +72,7 @@ | |||
72 | #include "splash.h" | 72 | #include "splash.h" |
73 | #include "buttonbar.h" | 73 | #include "buttonbar.h" |
74 | #include "quickscreen.h" | 74 | #include "quickscreen.h" |
75 | #include "appevents.h" | ||
75 | 76 | ||
76 | #include "root_menu.h" | 77 | #include "root_menu.h" |
77 | 78 | ||
@@ -301,6 +302,12 @@ void tree_gui_init(void) | |||
301 | } | 302 | } |
302 | 303 | ||
303 | 304 | ||
305 | /* drawer function for the GUI_EVENT_REDRAW callback */ | ||
306 | void tree_drawlists(void) | ||
307 | { | ||
308 | gui_synclist_draw(&tree_lists); | ||
309 | } | ||
310 | |||
304 | 311 | ||
305 | struct tree_context* tree_get_context(void) | 312 | struct tree_context* tree_get_context(void) |
306 | { | 313 | { |
@@ -778,6 +785,7 @@ static int dirbrowse() | |||
778 | } | 785 | } |
779 | onplay_result = onplay(buf, attr, curr_context); | 786 | onplay_result = onplay(buf, attr, curr_context); |
780 | } | 787 | } |
788 | send_event(GUI_EVENT_REFRESH, tree_drawlists); | ||
781 | switch (onplay_result) | 789 | switch (onplay_result) |
782 | { | 790 | { |
783 | case ONPLAY_MAINMENU: | 791 | case ONPLAY_MAINMENU: |
diff --git a/apps/tree.h b/apps/tree.h index 2d50387034..3b31d02451 100644 --- a/apps/tree.h +++ b/apps/tree.h | |||
@@ -70,6 +70,7 @@ struct tree_context { | |||
70 | int sort_dir; /* directory sort order */ | 70 | int sort_dir; /* directory sort order */ |
71 | }; | 71 | }; |
72 | 72 | ||
73 | void tree_drawlists(void); | ||
73 | void tree_mem_init(void); | 74 | void tree_mem_init(void); |
74 | void tree_gui_init(void); | 75 | void tree_gui_init(void); |
75 | void get_current_file(char* buffer, int buffer_len); | 76 | void get_current_file(char* buffer, int buffer_len); |