summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-06-10 10:41:27 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-06-10 10:41:27 +0000
commit2cda994431174ab809143761a3c72412acc54dc3 (patch)
tree6788c583da17659f0db91a25afc2b0893ba8827c /apps/tree.c
parent601ede7f9cc88cc40e074cc9d9cfdc2c0ba46d4c (diff)
downloadrockbox-2cda994431174ab809143761a3c72412acc54dc3.tar.gz
rockbox-2cda994431174ab809143761a3c72412acc54dc3.zip
Move the root_menu() call out of tree.c.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13609 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 53aca47d49..1f76994968 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -202,7 +202,8 @@ bool check_rockboxdir(void)
202 return true; 202 return true;
203} 203}
204 204
205void browse_root(void) 205/* do this really late in the init sequence */
206void tree_gui_init(void)
206{ 207{
207 gui_sync_wps_screen_init(); 208 gui_sync_wps_screen_init();
208 209
@@ -222,8 +223,6 @@ void browse_root(void)
222#endif 223#endif
223 gui_synclist_init(&tree_lists, &tree_get_filename, &tc, false, 1); 224 gui_synclist_init(&tree_lists, &tree_get_filename, &tc, false, 1);
224 gui_synclist_set_icon_callback(&tree_lists, &tree_get_fileicon); 225 gui_synclist_set_icon_callback(&tree_lists, &tree_get_fileicon);
225 /* not the best place for this call... but... */
226 root_menu();
227} 226}
228 227
229 228
@@ -1078,7 +1077,7 @@ int rockbox_browse(const char *root, int dirfilter)
1078 return ret_val; 1077 return ret_val;
1079} 1078}
1080 1079
1081void tree_init(void) 1080void tree_mem_init(void)
1082{ 1081{
1083 /* We copy the settings value in case it is changed by the user. We can't 1082 /* We copy the settings value in case it is changed by the user. We can't
1084 use it until the next reboot. */ 1083 use it until the next reboot. */