From ddfe49d9feeba0d280e501f67cda64646e79d901 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 7 Jan 2016 18:31:49 +0100 Subject: custom.c: Display missing options Also, determine the number of displayed options on the general configuration screen automatically (statically) instead of hard-coding the value to prevent from future fallouts. Signed-off-by: Lukas Fleischer --- src/custom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/custom.c b/src/custom.c index b0cbee2..c05b140 100644 --- a/src/custom.c +++ b/src/custom.c @@ -667,7 +667,7 @@ static enum listbox_row_type general_option_row_type(int i, void *cb_data) static int general_option_height(int i, void *cb_data) { - if (i == 9) + if (i == 11) return 4; else return 3; @@ -770,7 +770,7 @@ void custom_general_config(void) listbox_init(&lb, 0, 0, notify_bar() ? row - 3 : row - 2, col, _("general options"), general_option_row_type, general_option_height, print_general_option); - listbox_load_items(&lb, 10); + listbox_load_items(&lb, NB_OPTIONS); listbox_draw_deco(&lb, 0); listbox_display(&lb); wins_set_bindings(bindings, ARRAY_SIZE(bindings)); -- cgit v1.2.3