diff options
Diffstat (limited to 'apps/menus/display_menu.c')
-rw-r--r-- | apps/menus/display_menu.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c index 7e7b5a6903..957307d8a8 100644 --- a/apps/menus/display_menu.c +++ b/apps/menus/display_menu.c | |||
@@ -500,14 +500,25 @@ static int touch_mode_callback(int action,const struct menu_item_ex *this_item) | |||
500 | } | 500 | } |
501 | return action; | 501 | return action; |
502 | } | 502 | } |
503 | |||
504 | static int line_padding_callback(int action,const struct menu_item_ex *this_item) | ||
505 | { | ||
506 | (void)this_item; | ||
507 | |||
508 | if (action == ACTION_EXIT_MENUITEM) | ||
509 | viewportmanager_theme_changed(THEME_LISTS); | ||
510 | return action; | ||
511 | } | ||
512 | |||
503 | MENUITEM_SETTING(touch_mode, &global_settings.touch_mode, touch_mode_callback); | 513 | MENUITEM_SETTING(touch_mode, &global_settings.touch_mode, touch_mode_callback); |
504 | 514 | ||
505 | MENUITEM_FUNCTION(touchscreen_menu_calibrate, 0, ID2P(LANG_TOUCHSCREEN_CALIBRATE), calibrate, | 515 | MENUITEM_FUNCTION(touchscreen_menu_calibrate, 0, ID2P(LANG_TOUCHSCREEN_CALIBRATE), calibrate, |
506 | NULL, NULL, Icon_NOICON); | 516 | NULL, NULL, Icon_NOICON); |
507 | MENUITEM_FUNCTION(touchscreen_menu_reset_calibration, 0, ID2P(LANG_TOUCHSCREEN_RESET_CALIBRATION), reset_mapping, | 517 | MENUITEM_FUNCTION(touchscreen_menu_reset_calibration, 0, ID2P(LANG_TOUCHSCREEN_RESET_CALIBRATION), reset_mapping, |
508 | NULL, NULL, Icon_NOICON); | 518 | NULL, NULL, Icon_NOICON); |
519 | MENUITEM_SETTING(list_line_padding, &global_settings.list_line_padding, line_padding_callback); | ||
509 | 520 | ||
510 | MAKE_MENU(touchscreen_menu, ID2P(LANG_TOUCHSCREEN_SETTINGS), NULL, Icon_NOICON, &touch_mode, | 521 | MAKE_MENU(touchscreen_menu, ID2P(LANG_TOUCHSCREEN_SETTINGS), NULL, Icon_NOICON, &list_line_padding, &touch_mode, |
511 | &touchscreen_menu_calibrate, &touchscreen_menu_reset_calibration); | 522 | &touchscreen_menu_calibrate, &touchscreen_menu_reset_calibration); |
512 | #endif | 523 | #endif |
513 | 524 | ||