From 5eac0108f973bc5a132807775f9815b789e0c787 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 21 Oct 2007 01:27:17 +0000 Subject: simplify the simpelist api slightly so not every struct member needs to be init manually. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15236 a1c6a512-1295-4272-9138-f99709370657 --- apps/filetypes.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'apps/filetypes.c') diff --git a/apps/filetypes.c b/apps/filetypes.c index b5825044f1..3f1fa7d19b 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -487,14 +487,10 @@ int filetype_list_viewers(const char* current_file) return PLUGIN_OK; } #endif - info.title = str(LANG_ONPLAY_OPEN_WITH); - info.count = count; - info.selection_size = 1; info.hide_selection = false; - info.scroll_all = false; + simplelist_info_init(&info, str(LANG_ONPLAY_OPEN_WITH), 1, count, &data); info.action_callback = openwith_action_callback; info.get_name = openwith_get_name; info.get_icon = openwith_get_icon; - info.callback_data = &data; return simplelist_show_list(&info); } -- cgit v1.2.3