summaryrefslogtreecommitdiff
path: root/apps/gui/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index d9725e451a..cc66e25a48 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -1167,6 +1167,8 @@ bool simplelist_show_list(struct simplelist_info *info)
1167 gui_synclist_set_title(&lists, info->title, NOICON); 1167 gui_synclist_set_title(&lists, info->title, NOICON);
1168 if (info->get_icon) 1168 if (info->get_icon)
1169 gui_synclist_set_icon_callback(&lists, info->get_icon); 1169 gui_synclist_set_icon_callback(&lists, info->get_icon);
1170 if (info->get_talk)
1171 gui_synclist_set_voice_callback(&lists, info->get_talk);
1170 1172
1171 gui_synclist_hide_selection_marker(&lists, info->hide_selection); 1173 gui_synclist_hide_selection_marker(&lists, info->hide_selection);
1172 1174
@@ -1206,7 +1208,20 @@ bool simplelist_show_list(struct simplelist_info *info)
1206 return false; 1208 return false;
1207} 1209}
1208 1210
1209 1211void simplelist_info_init(struct simplelist_info *info, char* title,
1212 int selection_size, int count, void* data)
1213{
1214 info->title = title;
1215 info->count = count;
1216 info->selection_size = selection_size;
1217 info->hide_selection = false;
1218 info->scroll_all = false;
1219 info->action_callback = NULL;
1220 info->get_icon = NULL;
1221 info->get_name = NULL;
1222 info->get_talk = NULL;
1223 info->callback_data = data;
1224}
1210 1225
1211 1226
1212 1227