summaryrefslogtreecommitdiff
path: root/apps/filetypes.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-10-21 01:27:17 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-10-21 01:27:17 +0000
commit5eac0108f973bc5a132807775f9815b789e0c787 (patch)
tree6360f95b81a7ae3b1ccbcfb0b657cc4a6029e6bb /apps/filetypes.c
parent7736947b74a4d272e68d7ea84bcbe6f681b723e4 (diff)
downloadrockbox-5eac0108f973bc5a132807775f9815b789e0c787.tar.gz
rockbox-5eac0108f973bc5a132807775f9815b789e0c787.zip
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
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r--apps/filetypes.c6
1 files changed, 1 insertions, 5 deletions
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)
487 return PLUGIN_OK; 487 return PLUGIN_OK;
488 } 488 }
489#endif 489#endif
490 info.title = str(LANG_ONPLAY_OPEN_WITH); 490 simplelist_info_init(&info, str(LANG_ONPLAY_OPEN_WITH), 1, count, &data);
491 info.count = count;
492 info.selection_size = 1; info.hide_selection = false;
493 info.scroll_all = false;
494 info.action_callback = openwith_action_callback; 491 info.action_callback = openwith_action_callback;
495 info.get_name = openwith_get_name; 492 info.get_name = openwith_get_name;
496 info.get_icon = openwith_get_icon; 493 info.get_icon = openwith_get_icon;
497 info.callback_data = &data;
498 return simplelist_show_list(&info); 494 return simplelist_show_list(&info);
499} 495}
500 496