From 0465101f92e45c06009a4d94079cea2218734785 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 21 Oct 2007 13:47:43 +0000 Subject: allow simplelists to set the timeout and the start selection. set a slightly saner default timeout talk the selected item when the list is first displayed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15247 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/gui/list.h') diff --git a/apps/gui/list.h b/apps/gui/list.h index e6a80f4714..742e30dbaa 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -267,6 +267,8 @@ struct simplelist_info { char selection_size; /* list selection size, usually 1 */ bool hide_selection; bool scroll_all; + int timeout; + int start_selection; /* the item to select when the list is first displayed */ int (*action_callback)(int action, struct gui_synclist *lists); /* can be NULL */ /* action_callback notes: action == the action pressed by the user @@ -303,6 +305,8 @@ void simplelist_addline(int line_number, const char *fmt, ...); info.get_icon = NULL; info.get_name = NULL; info.get_voice = NULL; + info.timeout = HZ/10; + info.start_selection = 0; */ void simplelist_info_init(struct simplelist_info *info, char* title, int count, void* data); -- cgit v1.2.3