summaryrefslogtreecommitdiffstats
path: root/apps/plugins/viewer.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-05-05 17:49:27 +0000
committerJens Arnold <amiconn@rockbox.org>2006-05-05 17:49:27 +0000
commitb4efbdcdbb14132e474a74f16ea13f06bd219104 (patch)
tree7bd650bb7787597029bff7ae5e65ba5dc7d35192 /apps/plugins/viewer.c
parented41ba0ca75c792e5a1ce9d88a4970882ac8c228 (diff)
downloadrockbox-b4efbdcdbb14132e474a74f16ea13f06bd219104.tar.gz
rockbox-b4efbdcdbb14132e474a74f16ea13f06bd219104.zip
Viewer: Don't say 'yes' to every option ;-) (Voice ID must be -1 for 'no clip').
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9880 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/viewer.c')
-rw-r--r--apps/plugins/viewer.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c
index 73621c1579..6822f73868 100644
--- a/apps/plugins/viewer.c
+++ b/apps/plugins/viewer.c
@@ -974,8 +974,8 @@ static int col_limit(int col)
static bool word_wrap_setting(void)
{
static const struct opt_items names[] = {
- {"On", NULL},
- {"Off (Chop Words)", NULL},
+ {"On", -1},
+ {"Off (Chop Words)", -1},
};
return rb->set_option("Word Wrap", &prefs.word_mode, INT,
@@ -985,11 +985,11 @@ static bool word_wrap_setting(void)
static bool line_mode_setting(void)
{
static const struct opt_items names[] = {
- {"Normal", NULL},
- {"Join Lines", NULL},
- {"Expand Lines", NULL},
+ {"Normal", -1},
+ {"Join Lines", -1},
+ {"Expand Lines", -1},
#ifdef HAVE_LCD_BITMAP
- {"Reflow Lines", NULL},
+ {"Reflow Lines", -1},
#endif
};
@@ -1000,8 +1000,8 @@ static bool line_mode_setting(void)
static bool view_mode_setting(void)
{
static const struct opt_items names[] = {
- {"No (Narrow)", NULL},
- {"Yes", NULL},
+ {"No (Narrow)", -1},
+ {"Yes", -1},
};
return rb->set_option("Wide View", &prefs.view_mode, INT,
@@ -1011,8 +1011,8 @@ static bool view_mode_setting(void)
static bool scroll_mode_setting(void)
{
static const struct opt_items names[] = {
- {"Scroll by Page", NULL},
- {"Scroll by Line", NULL},
+ {"Scroll by Page", -1},
+ {"Scroll by Line", -1},
};
return rb->set_option("Scroll Mode", &prefs.scroll_mode, INT,
@@ -1023,8 +1023,8 @@ static bool scroll_mode_setting(void)
static bool page_mode_setting(void)
{
static const struct opt_items names[] = {
- {"No", NULL},
- {"Yes", NULL},
+ {"No", -1},
+ {"Yes", -1},
};
return rb->set_option("Overlap Pages", &prefs.page_mode, INT,
@@ -1034,8 +1034,8 @@ static bool page_mode_setting(void)
static bool scrollbar_setting(void)
{
static const struct opt_items names[] = {
- {"Off", NULL},
- {"On", NULL}
+ {"Off", -1},
+ {"On", -1}
};
return rb->set_option("Show Scrollbar", &prefs.scrollbar_mode, INT,