summaryrefslogtreecommitdiff
path: root/apps/gui/list.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-10-21 13:47:43 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-10-21 13:47:43 +0000
commit0465101f92e45c06009a4d94079cea2218734785 (patch)
treea76c9920bb7d4ed3135cf072a9d0dd097dfea9fd /apps/gui/list.h
parentc1051549b93d1905602ba25409cbd8f4a607c3b5 (diff)
downloadrockbox-0465101f92e45c06009a4d94079cea2218734785.tar.gz
rockbox-0465101f92e45c06009a4d94079cea2218734785.zip
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
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r--apps/gui/list.h4
1 files changed, 4 insertions, 0 deletions
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 {
267 char selection_size; /* list selection size, usually 1 */ 267 char selection_size; /* list selection size, usually 1 */
268 bool hide_selection; 268 bool hide_selection;
269 bool scroll_all; 269 bool scroll_all;
270 int timeout;
271 int start_selection; /* the item to select when the list is first displayed */
270 int (*action_callback)(int action, struct gui_synclist *lists); /* can be NULL */ 272 int (*action_callback)(int action, struct gui_synclist *lists); /* can be NULL */
271 /* action_callback notes: 273 /* action_callback notes:
272 action == the action pressed by the user 274 action == the action pressed by the user
@@ -303,6 +305,8 @@ void simplelist_addline(int line_number, const char *fmt, ...);
303 info.get_icon = NULL; 305 info.get_icon = NULL;
304 info.get_name = NULL; 306 info.get_name = NULL;
305 info.get_voice = NULL; 307 info.get_voice = NULL;
308 info.timeout = HZ/10;
309 info.start_selection = 0;
306*/ 310*/
307void simplelist_info_init(struct simplelist_info *info, char* title, 311void simplelist_info_init(struct simplelist_info *info, char* title,
308 int count, void* data); 312 int count, void* data);