From 0ebe688d2462fe99faf3ec9ef4d36e33017a636c Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 12 Aug 2015 17:29:32 -0300 Subject: Avoid future confusions with how default values are set. --- ColorsPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ColorsPanel.c') diff --git a/ColorsPanel.c b/ColorsPanel.c index 40aa837a..3c40a477 100644 --- a/ColorsPanel.c +++ b/ColorsPanel.c @@ -105,7 +105,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_new(strdup(ColorSchemeNames[i]), NULL, false)); + Panel_add(super, (Object*) CheckItem_newByVal(strdup(ColorSchemeNames[i]), false)); } CheckItem_set((CheckItem*)Panel_get(super, settings->colorScheme), true); return this; -- cgit v1.2.3