diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-11-21 21:40:08 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-11-25 20:46:27 +0100 |
commit | 267014cbfe584ff9a1bc74d671f8aaa27251fd49 (patch) | |
tree | c49c5efc511a93722052084b78a735962db46b91 /ColorsPanel.c | |
parent | adf918520976a5f06181c1c05392a0da6e4bbaa5 (diff) |
Add support to change numeric options in settings screen
Like delay or highlightDelaySecs
Diffstat (limited to 'ColorsPanel.c')
-rw-r--r-- | ColorsPanel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ColorsPanel.c b/ColorsPanel.c index 9da71545..69927092 100644 --- a/ColorsPanel.c +++ b/ColorsPanel.c @@ -10,11 +10,11 @@ in the source distribution for its full text. #include <stdbool.h> #include <stdlib.h> -#include "CheckItem.h" #include "CRT.h" #include "FunctionBar.h" #include "Header.h" #include "Object.h" +#include "OptionItem.h" #include "ProvideCurses.h" #include "RichString.h" #include "Vector.h" @@ -103,7 +103,7 @@ ColorsPanel* ColorsPanel_new(Settings* settings, ScreenManager* scr) { Panel_setHeader(super, "Colors"); for (int i = 0; ColorSchemeNames[i] != NULL; i++) { - Panel_add(super, (Object*) CheckItem_newByVal(xStrdup(ColorSchemeNames[i]), false)); + Panel_add(super, (Object*) CheckItem_newByVal(ColorSchemeNames[i], false)); } CheckItem_set((CheckItem*)Panel_get(super, settings->colorScheme), true); return this; |