diff options
Diffstat (limited to 'apps/plugins/text_viewer/tv_menu.c')
-rw-r--r-- | apps/plugins/text_viewer/tv_menu.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugins/text_viewer/tv_menu.c b/apps/plugins/text_viewer/tv_menu.c index 7c27a3d8c1..ce85dc9325 100644 --- a/apps/plugins/text_viewer/tv_menu.c +++ b/apps/plugins/text_viewer/tv_menu.c | |||
@@ -315,6 +315,12 @@ static bool tv_font_setting(void) | |||
315 | } | 315 | } |
316 | #endif | 316 | #endif |
317 | 317 | ||
318 | static bool tv_indent_spaces_setting(void) | ||
319 | { | ||
320 | return rb->set_int("Indent Spaces", "", UNIT_INT, | ||
321 | &new_prefs.indent_spaces, NULL, 1, 0, 5, NULL); | ||
322 | } | ||
323 | |||
318 | MENUITEM_FUNCTION(encoding_item, 0, "Encoding", tv_encoding_setting, | 324 | MENUITEM_FUNCTION(encoding_item, 0, "Encoding", tv_encoding_setting, |
319 | NULL, NULL, Icon_NOICON); | 325 | NULL, NULL, Icon_NOICON); |
320 | MENUITEM_FUNCTION(word_wrap_item, 0, "Word Wrap", tv_word_wrap_setting, | 326 | MENUITEM_FUNCTION(word_wrap_item, 0, "Word Wrap", tv_word_wrap_setting, |
@@ -333,6 +339,8 @@ MENUITEM_FUNCTION(footer_item, 0, "Show Footer", tv_footer_setting, | |||
333 | MENUITEM_FUNCTION(font_item, 0, "Font", tv_font_setting, | 339 | MENUITEM_FUNCTION(font_item, 0, "Font", tv_font_setting, |
334 | NULL, NULL, Icon_NOICON); | 340 | NULL, NULL, Icon_NOICON); |
335 | #endif | 341 | #endif |
342 | MENUITEM_FUNCTION(indent_spaces_item, 0, "Indent Spaces", tv_indent_spaces_setting, | ||
343 | NULL, NULL, Icon_NOICON); | ||
336 | 344 | ||
337 | MAKE_MENU(option_menu, "Viewer Options", NULL, Icon_NOICON, | 345 | MAKE_MENU(option_menu, "Viewer Options", NULL, Icon_NOICON, |
338 | &encoding_item, &word_wrap_item, &line_mode_item, &windows_item, | 346 | &encoding_item, &word_wrap_item, &line_mode_item, &windows_item, |
@@ -340,7 +348,7 @@ MAKE_MENU(option_menu, "Viewer Options", NULL, Icon_NOICON, | |||
340 | #ifdef HAVE_LCD_BITMAP | 348 | #ifdef HAVE_LCD_BITMAP |
341 | &header_item, &footer_item, &font_item, | 349 | &header_item, &footer_item, &font_item, |
342 | #endif | 350 | #endif |
343 | &scroll_menu); | 351 | &scroll_menu, &indent_spaces_item); |
344 | 352 | ||
345 | static enum tv_menu_result tv_options_menu(void) | 353 | static enum tv_menu_result tv_options_menu(void) |
346 | { | 354 | { |