X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=engines%2Fopenbox%2Ftheme.c;h=154aae83900cd105141674375910de642f5953ab;hb=9ff6ea27b193bde39b79ff465cbae699f4322afa;hp=3c7c26970e8dc730b966d7246d60a2925a357f7c;hpb=5bf68f762b8fc87cf5583b645b948b4fe55f179f;p=chaz%2Fopenbox 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);