From eb2ea7f9ad4c4e2cce390f8fe73e17698fa9a906 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 12 Jan 2012 22:28:36 +1100 Subject: 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 --- apps/tree.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 4431db2..cc080ac 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 -- cgit v1.1