From 2cda994431174ab809143761a3c72412acc54dc3 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 10 Jun 2007 10:41:27 +0000 Subject: Move the root_menu() call out of tree.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13609 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps/tree.c') 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) return true; } -void browse_root(void) +/* do this really late in the init sequence */ +void tree_gui_init(void) { gui_sync_wps_screen_init(); @@ -222,8 +223,6 @@ void browse_root(void) #endif gui_synclist_init(&tree_lists, &tree_get_filename, &tc, false, 1); gui_synclist_set_icon_callback(&tree_lists, &tree_get_fileicon); - /* not the best place for this call... but... */ - root_menu(); } @@ -1078,7 +1077,7 @@ int rockbox_browse(const char *root, int dirfilter) return ret_val; } -void tree_init(void) +void tree_mem_init(void) { /* We copy the settings value in case it is changed by the user. We can't use it until the next reboot. */ -- cgit v1.2.3