summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/plugin_menu.c9
-rw-r--r--apps/menus/theme_menu.c9
2 files changed, 12 insertions, 6 deletions
diff --git a/apps/menus/plugin_menu.c b/apps/menus/plugin_menu.c
index cbc1ce03f2..fa0d721c05 100644
--- a/apps/menus/plugin_menu.c
+++ b/apps/menus/plugin_menu.c
@@ -54,11 +54,14 @@ static void pm_handler(unsigned short id, void *data)
54static int plugins_menu(void* param) 54static int plugins_menu(void* param)
55{ 55{
56 intptr_t item = (intptr_t)param; 56 intptr_t item = (intptr_t)param;
57 struct browse_context browse;
58 int ret; 57 int ret;
59 58
60 browse_context_init(&browse, SHOW_PLUGINS, 0, str(items[item].id), 59 struct browse_context browse = {
61 Icon_Plugin, items[item].path, NULL); 60 .dirfilter = SHOW_PLUGINS,
61 .title = str(items[item].id),
62 .icon = Icon_Plugin,
63 .root = items[item].path,
64 };
62 65
63 ret = rockbox_browse(&browse); 66 ret = rockbox_browse(&browse);
64 67
diff --git a/apps/menus/theme_menu.c b/apps/menus/theme_menu.c
index 60a2a27ef4..1b501452d0 100644
--- a/apps/menus/theme_menu.c
+++ b/apps/menus/theme_menu.c
@@ -249,9 +249,12 @@ int browse_folder(void *param)
249 char selected[MAX_FILENAME+10]; 249 char selected[MAX_FILENAME+10];
250 const struct browse_folder_info *info = 250 const struct browse_folder_info *info =
251 (const struct browse_folder_info*)param; 251 (const struct browse_folder_info*)param;
252 struct browse_context browse; 252
253 browse_context_init(&browse, info->show_options, 0, 253 struct browse_context browse = {
254 NULL, NOICON, info->dir, NULL); 254 .dirfilter = info->show_options,
255 .icon = Icon_NOICON,
256 .root = info->dir,
257 };
255 258
256 /* if we are in a special settings folder, center the current setting */ 259 /* if we are in a special settings folder, center the current setting */
257 switch(info->show_options) 260 switch(info->show_options)