summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/text_viewer/tv_menu.c')
-rw-r--r--apps/plugins/text_viewer/tv_menu.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/text_viewer/tv_menu.c b/apps/plugins/text_viewer/tv_menu.c
index 1cc471e207..74a964ba98 100644
--- a/apps/plugins/text_viewer/tv_menu.c
+++ b/apps/plugins/text_viewer/tv_menu.c
@@ -46,7 +46,7 @@ static bool tv_horizontal_scroll_mode_setting(void)
46 {"Scroll by Column", -1}, 46 {"Scroll by Column", -1},
47 }; 47 };
48 48
49 return rb->set_option("Scroll Mode", &new_prefs.horizontal_scroll_mode, INT, 49 return rb->set_option("Scroll Mode", &new_prefs.horizontal_scroll_mode, RB_INT,
50 names, 2, NULL); 50 names, 2, NULL);
51} 51}
52 52
@@ -75,7 +75,7 @@ static bool tv_vertical_scroll_mode_setting(void)
75 {"Scroll by Line", -1}, 75 {"Scroll by Line", -1},
76 }; 76 };
77 77
78 return rb->set_option("Scroll Mode", &new_prefs.vertical_scroll_mode, INT, 78 return rb->set_option("Scroll Mode", &new_prefs.vertical_scroll_mode, RB_INT,
79 names, 2, NULL); 79 names, 2, NULL);
80} 80}
81 81
@@ -97,7 +97,7 @@ static bool tv_narrow_mode_setting(void)
97 {"Top/Bottom Page", -1}, 97 {"Top/Bottom Page", -1},
98 }; 98 };
99 99
100 return rb->set_option("Left/Right Key", &new_prefs.narrow_mode, INT, 100 return rb->set_option("Left/Right Key", &new_prefs.narrow_mode, RB_INT,
101 names, 2, NULL); 101 names, 2, NULL);
102} 102}
103 103
@@ -138,7 +138,7 @@ static bool tv_encoding_setting(void)
138 names[idx].voice_id = -1; 138 names[idx].voice_id = -1;
139 } 139 }
140 140
141 return rb->set_option("Encoding", &new_prefs.encoding, INT, names, 141 return rb->set_option("Encoding", &new_prefs.encoding, RB_INT, names,
142 sizeof(names) / sizeof(names[0]), NULL); 142 sizeof(names) / sizeof(names[0]), NULL);
143} 143}
144 144
@@ -149,7 +149,7 @@ static bool tv_word_wrap_setting(void)
149 {"Off (Chop Words)", -1}, 149 {"Off (Chop Words)", -1},
150 }; 150 };
151 151
152 return rb->set_option("Word Wrap", &new_prefs.word_mode, INT, 152 return rb->set_option("Word Wrap", &new_prefs.word_mode, RB_INT,
153 names, 2, NULL); 153 names, 2, NULL);
154} 154}
155 155
@@ -162,7 +162,7 @@ static bool tv_line_mode_setting(void)
162 {"Reflow Lines", -1}, 162 {"Reflow Lines", -1},
163 }; 163 };
164 164
165 return rb->set_option("Line Mode", &new_prefs.line_mode, INT, names, 165 return rb->set_option("Line Mode", &new_prefs.line_mode, RB_INT, names,
166 sizeof(names) / sizeof(names[0]), NULL); 166 sizeof(names) / sizeof(names[0]), NULL);
167} 167}
168 168
@@ -179,7 +179,7 @@ static bool tv_alignment_setting(void)
179 {"Right", -1}, 179 {"Right", -1},
180 }; 180 };
181 181
182 return rb->set_option("Alignment", &new_prefs.alignment, INT, 182 return rb->set_option("Alignment", &new_prefs.alignment, RB_INT,
183 names , 2, NULL); 183 names , 2, NULL);
184} 184}
185 185