From cf1cef5f573ca6961041c9ab53649ac52f6b1e93 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 17 Sep 2007 10:08:50 +0000 Subject: minor update to gui_synclist_do_button() which will hopefully simplify things later. Now returns true if the action was handled in that function instead of returning the handled action. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14733 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'apps/gui/list.h') diff --git a/apps/gui/list.h b/apps/gui/list.h index d0bc59b7bc..1046492b0d 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -218,16 +218,11 @@ extern void gui_synclist_hide_selection_marker(struct gui_synclist *lists, bool hide); /* * Do the action implied by the given button, - * returns the action taken if any, 0 else - * - lists : the synchronized lists - * - button : the keycode of a pressed button - * - specifies weather to allow the list to wrap or not, values at top of page - * returned value : - * - ACTION_STD_NEXT when moving forward (next item or pgup) - * - ACTION_STD_PREV when moving backward (previous item or pgdown) + * returns true if the action was handled. + * NOTE: *action may be changed regardless of return value */ -extern unsigned gui_synclist_do_button(struct gui_synclist * lists, - unsigned button, +extern bool gui_synclist_do_button(struct gui_synclist * lists, + unsigned *action, enum list_wrap); #endif /* _GUI_LIST_H_ */ -- cgit v1.2.3