diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-05-05 17:49:27 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-05-05 17:49:27 +0000 |
commit | b4efbdcdbb14132e474a74f16ea13f06bd219104 (patch) | |
tree | 7bd650bb7787597029bff7ae5e65ba5dc7d35192 /apps/plugins | |
parent | ed41ba0ca75c792e5a1ce9d88a4970882ac8c228 (diff) | |
download | rockbox-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')
-rw-r--r-- | apps/plugins/viewer.c | 28 |
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) | |||
974 | static bool word_wrap_setting(void) | 974 | static bool word_wrap_setting(void) |
975 | { | 975 | { |
976 | static const struct opt_items names[] = { | 976 | static const struct opt_items names[] = { |
977 | {"On", NULL}, | 977 | {"On", -1}, |
978 | {"Off (Chop Words)", NULL}, | 978 | {"Off (Chop Words)", -1}, |
979 | }; | 979 | }; |
980 | 980 | ||
981 | return rb->set_option("Word Wrap", &prefs.word_mode, INT, | 981 | return rb->set_option("Word Wrap", &prefs.word_mode, INT, |
@@ -985,11 +985,11 @@ static bool word_wrap_setting(void) | |||
985 | static bool line_mode_setting(void) | 985 | static bool line_mode_setting(void) |
986 | { | 986 | { |
987 | static const struct opt_items names[] = { | 987 | static const struct opt_items names[] = { |
988 | {"Normal", NULL}, | 988 | {"Normal", -1}, |
989 | {"Join Lines", NULL}, | 989 | {"Join Lines", -1}, |
990 | {"Expand Lines", NULL}, | 990 | {"Expand Lines", -1}, |
991 | #ifdef HAVE_LCD_BITMAP | 991 | #ifdef HAVE_LCD_BITMAP |
992 | {"Reflow Lines", NULL}, | 992 | {"Reflow Lines", -1}, |
993 | #endif | 993 | #endif |
994 | }; | 994 | }; |
995 | 995 | ||
@@ -1000,8 +1000,8 @@ static bool line_mode_setting(void) | |||
1000 | static bool view_mode_setting(void) | 1000 | static bool view_mode_setting(void) |
1001 | { | 1001 | { |
1002 | static const struct opt_items names[] = { | 1002 | static const struct opt_items names[] = { |
1003 | {"No (Narrow)", NULL}, | 1003 | {"No (Narrow)", -1}, |
1004 | {"Yes", NULL}, | 1004 | {"Yes", -1}, |
1005 | }; | 1005 | }; |
1006 | 1006 | ||
1007 | return rb->set_option("Wide View", &prefs.view_mode, INT, | 1007 | return rb->set_option("Wide View", &prefs.view_mode, INT, |
@@ -1011,8 +1011,8 @@ static bool view_mode_setting(void) | |||
1011 | static bool scroll_mode_setting(void) | 1011 | static bool scroll_mode_setting(void) |
1012 | { | 1012 | { |
1013 | static const struct opt_items names[] = { | 1013 | static const struct opt_items names[] = { |
1014 | {"Scroll by Page", NULL}, | 1014 | {"Scroll by Page", -1}, |
1015 | {"Scroll by Line", NULL}, | 1015 | {"Scroll by Line", -1}, |
1016 | }; | 1016 | }; |
1017 | 1017 | ||
1018 | return rb->set_option("Scroll Mode", &prefs.scroll_mode, INT, | 1018 | return rb->set_option("Scroll Mode", &prefs.scroll_mode, INT, |
@@ -1023,8 +1023,8 @@ static bool scroll_mode_setting(void) | |||
1023 | static bool page_mode_setting(void) | 1023 | static bool page_mode_setting(void) |
1024 | { | 1024 | { |
1025 | static const struct opt_items names[] = { | 1025 | static const struct opt_items names[] = { |
1026 | {"No", NULL}, | 1026 | {"No", -1}, |
1027 | {"Yes", NULL}, | 1027 | {"Yes", -1}, |
1028 | }; | 1028 | }; |
1029 | 1029 | ||
1030 | return rb->set_option("Overlap Pages", &prefs.page_mode, INT, | 1030 | return rb->set_option("Overlap Pages", &prefs.page_mode, INT, |
@@ -1034,8 +1034,8 @@ static bool page_mode_setting(void) | |||
1034 | static bool scrollbar_setting(void) | 1034 | static bool scrollbar_setting(void) |
1035 | { | 1035 | { |
1036 | static const struct opt_items names[] = { | 1036 | static const struct opt_items names[] = { |
1037 | {"Off", NULL}, | 1037 | {"Off", -1}, |
1038 | {"On", NULL} | 1038 | {"On", -1} |
1039 | }; | 1039 | }; |
1040 | 1040 | ||
1041 | return rb->set_option("Show Scrollbar", &prefs.scrollbar_mode, INT, | 1041 | return rb->set_option("Show Scrollbar", &prefs.scrollbar_mode, INT, |