summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pictureflow
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2009-08-06 14:01:47 +0000
committerTeruaki Kawashima <teru@rockbox.org>2009-08-06 14:01:47 +0000
commitdbce22dc68cffc8315a8dc8e999d69dcb5ad9c44 (patch)
tree081cccd5ad6cf04c854dda87466740f3c5eecf17 /apps/plugins/pictureflow
parent357f1f454c110726f3bb781719637f4629b3413b (diff)
downloadrockbox-dbce22dc68cffc8315a8dc8e999d69dcb5ad9c44.tar.gz
rockbox-dbce22dc68cffc8315a8dc8e999d69dcb5ad9c44.tar.bz2
rockbox-dbce22dc68cffc8315a8dc8e999d69dcb5ad9c44.zip
use set_option instead of menu api for some settings of plugins to make it clear it's a setting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22189 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pictureflow')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c28
1 files changed, 9 insertions, 19 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 34d1db5d5c..52209e60a2 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -879,7 +879,7 @@ retry:
}
goto retry;
}
-
+
avail -= len;
tracks--;
tracks->sort = ((disc_num - 1) << 24) + (track_num << 14) + track_count;
@@ -2053,21 +2053,6 @@ int create_empty_slide(bool force)
}
/**
- Shows the album name setting menu
-*/
-int album_name_menu(void)
-{
- int selection = show_album_name;
-
- MENUITEM_STRINGLIST(album_name_menu,"Show album title",NULL,
- "Hide album title", "Show at the bottom", "Show at the top");
- rb->do_menu(&album_name_menu, &selection, NULL, false);
-
- show_album_name = selection;
- return GO_TO_PREVIOUS;
-}
-
-/**
Shows the settings menu
*/
int settings_menu(void)
@@ -2079,6 +2064,12 @@ int settings_menu(void)
"Spacing", "Centre margin", "Number of slides", "Zoom",
"Show album title", "Resize Covers", "Rebuild cache");
+ static const struct opt_items album_name_options[] = {
+ { "Hide album title", -1 },
+ { "Show at the bottom", -1 },
+ { "Show at the top", -1 }
+ };
+
do {
selection=rb->do_menu(&settings_menu,&selection, NULL, false);
switch(selection) {
@@ -2117,7 +2108,8 @@ int settings_menu(void)
reset_slides();
break;
case 5:
- album_name_menu();
+ rb->set_option("Show album title", &show_album_name,
+ INT, album_name_options, 3, NULL);
reset_track_list();
recalc_offsets();
reset_slides();
@@ -2729,8 +2721,6 @@ int main(void)
break;
}
}
-
-
}
/*************************** Plugin entry point ****************************/