summaryrefslogtreecommitdiffstats
path: root/apps/tree.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2012-01-12 22:28:36 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2012-01-12 22:28:36 +1100
commiteb2ea7f9ad4c4e2cce390f8fe73e17698fa9a906 (patch)
tree64cd1f227d75a5758b52d9b49ae7bdf23f6dbf83 /apps/tree.c
parent5ef27368f1bcbe31fb27072983d7a29df8de6845 (diff)
downloadrockbox-eb2ea7f9ad4c4e2cce390f8fe73e17698fa9a906.tar.gz
rockbox-eb2ea7f9ad4c4e2cce390f8fe73e17698fa9a906.zip
keyclick: Add a callback so screens can cancel a click. Add a generic list callback to stop clicks when we are at the end of the list
Change-Id: Iabb44a861dd7506cd883c1bdb0241303fa646746
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 4431db2c4a..cc080ac7fa 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -652,6 +652,9 @@ static int dirbrowse(void)
if (tc.dirlevel < 0)
tc.dirlevel = 0; /* shouldnt be needed.. this code needs work! */
+#if CONFIG_CODEC == SWCODEC
+ keyclick_set_callback(gui_synclist_keyclick_callback, &tree_lists);
+#endif
button = get_action(CONTEXT_TREE,
list_do_action_timeout(&tree_lists, HZ/2));
#ifdef HAVE_LCD_BITMAP