summaryrefslogtreecommitdiffstats
path: root/ColorsPanel.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-08-12 17:29:32 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-08-12 17:29:32 -0300
commit0ebe688d2462fe99faf3ec9ef4d36e33017a636c (patch)
treedbd58491ea4825bf624ef7c75ba1e475a6a46770 /ColorsPanel.c
parente1e3ffad19e3d1d14ba8f1e8e4628a7cd01c7af6 (diff)
Avoid future confusions with how default values are set.
Diffstat (limited to 'ColorsPanel.c')
-rw-r--r--ColorsPanel.c2
1 files changed, 1 insertions, 1 deletions
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy