diff options
Diffstat (limited to 'apps/gui')
| -rw-r--r-- | apps/gui/list.c | 4 | ||||
| -rw-r--r-- | apps/gui/list.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index cc66e25..6727f9b 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -1209,11 +1209,11 @@ bool simplelist_show_list(struct simplelist_info *info) } void simplelist_info_init(struct simplelist_info *info, char* title, - int selection_size, int count, void* data) + int count, void* data) { info->title = title; info->count = count; - info->selection_size = selection_size; + info->selection_size = 1; info->hide_selection = false; info->scroll_all = false; info->action_callback = NULL; diff --git a/apps/gui/list.h b/apps/gui/list.h index 7b9ef94..e6a80f4 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -296,6 +296,7 @@ void simplelist_addline(int line_number, const char *fmt, ...); /* setup the info struct. members not setup in this function need to be assigned manually members set in this function: + info.selection_size = 1; info.hide_selection = false; info.scroll_all = false; info.action_callback = NULL; @@ -304,7 +305,7 @@ void simplelist_addline(int line_number, const char *fmt, ...); info.get_voice = NULL; */ void simplelist_info_init(struct simplelist_info *info, char* title, - int selection_size, int count, void* data); + int count, void* data); /* show a list. if list->action_callback != NULL it is called with the action ACTION_REDRAW |