summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-09-17 08:30:17 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-09-17 08:30:17 +0000
commit4553069f9dc1883072a9e1dee130235d4a970075 (patch)
tree500da5416bfa6f22fc42e3a97f52c9c9c589f770 /apps
parentdd89514ef9c0ac3460de9ecb5d9a38f03b513961 (diff)
downloadrockbox-4553069f9dc1883072a9e1dee130235d4a970075.tar.gz
rockbox-4553069f9dc1883072a9e1dee130235d4a970075.zip
holding left in the tree will quickly get back to root, as long as the text is in the left-most position (like before)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10965 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/list.c2
-rw-r--r--apps/tree.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 94150176dc..164bfc8773 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -749,6 +749,8 @@ unsigned gui_synclist_do_button(struct gui_synclist * lists, unsigned button)
749 gui_synclist_draw(lists); 749 gui_synclist_draw(lists);
750 return ACTION_TREE_PGRIGHT; 750 return ACTION_TREE_PGRIGHT;
751 case ACTION_TREE_PGLEFT: 751 case ACTION_TREE_PGLEFT:
752 if (lists->gui_list[0].offset_position == 0)
753 return ACTION_STD_CANCEL;
752 gui_synclist_scroll_left(lists); 754 gui_synclist_scroll_left(lists);
753 gui_synclist_draw(lists); 755 gui_synclist_draw(lists);
754 return ACTION_TREE_PGLEFT; 756 return ACTION_TREE_PGLEFT;
diff --git a/apps/tree.c b/apps/tree.c
index 50ad92239e..1f68a8560b 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -549,7 +549,7 @@ static bool dirbrowse(void)
549 int numentries=0; 549 int numentries=0;
550 char buf[MAX_PATH]; 550 char buf[MAX_PATH];
551 int lasti = -1; 551 int lasti = -1;
552 unsigned button; 552 unsigned button, returned_button;
553 bool reload_root = false; 553 bool reload_root = false;
554 int lastfilter = *tc.dirfilter; 554 int lastfilter = *tc.dirfilter;
555 bool lastsortcase = global_settings.sort_case; 555 bool lastsortcase = global_settings.sort_case;
@@ -619,7 +619,10 @@ static bool dirbrowse(void)
619 } 619 }
620#endif 620#endif
621 button = get_action(CONTEXT_TREE,HZ/5); 621 button = get_action(CONTEXT_TREE,HZ/5);
622 need_update = gui_synclist_do_button(&tree_lists, button); 622 returned_button = gui_synclist_do_button(&tree_lists, button);
623 need_update = (bool)returned_button;
624 if (returned_button == ACTION_STD_CANCEL)
625 button = ACTION_STD_CANCEL;
623 626
624 switch ( button ) { 627 switch ( button ) {
625 case ACTION_STD_OK: 628 case ACTION_STD_OK: