From: Dana Jansens Date: Sun, 23 Mar 2003 00:39:28 +0000 (+0000) Subject: load config values right. load the bool shadow option too now. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=9ff6ea27b193bde39b79ff465cbae699f4322afa;p=chaz%2Fopenbox load config values right. load the bool shadow option too now. --- diff --git a/engines/openbox/theme.c b/engines/openbox/theme.c index 3c7c2697..154aae83 100644 --- a/engines/openbox/theme.c +++ b/engines/openbox/theme.c @@ -314,12 +314,18 @@ gboolean load() } /* load the font, not from the theme file tho, its in the config */ - s_winfont_shadow = 1; /* XXX read from themrc */ + + if (!config_get("font.shadow", Config_Bool, &shadow)) { + shadow.bool = TRUE; /* default */ + config_set("font.shadow", Config_Bool, shadow); + } + s_winfont_shadow = shadow.bool; if (!config_get("font.shadow.offset", Config_Integer, &offset) || offset.integer < 0 || offset.integer >= 10) { - s_winfont_shadow_offset = 1; /* default */ + offset.integer = 1; /* default */ + config_set("font.shadow.offset", Config_Integer, offset); } - + s_winfont_shadow_offset = offset.integer; if (!config_get("font", Config_String, &font)) { font.string = DEFAULT_FONT; config_set("font", Config_String, font);