From 191a0bc07568aca3b85e4b4789b7dc4d3733742f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 4 Mar 2007 18:49:16 +0000 Subject: [PATCH] i moved the font shadow stuff back into the theme, so move them out of the font configuration stuff --- data/rc.xml.in | 16 ---------------- data/rc.xsd | 10 ++-------- openbox/config.c | 21 +-------------------- 3 files changed, 3 insertions(+), 44 deletions(-) diff --git a/data/rc.xml.in b/data/rc.xml.in index e7b4d509..b2b6be23 100644 --- a/data/rc.xml.in +++ b/data/rc.xml.in @@ -48,40 +48,24 @@ 7 bold normal - - 1 - 30 - arial,sans 7 bold normal - - 1 - 30 - arial,sans 8 bold normal - - 1 - 30 - arial,sans 8 bold normal - - 1 - 30 - diff --git a/data/rc.xsd b/data/rc.xsd index 7a3dba61..1ca631fc 100644 --- a/data/rc.xsd +++ b/data/rc.xsd @@ -43,6 +43,8 @@ Add movefromedge* actions Sun Mar 4 12:12:19 EST 2007 - danakj(a)orodu.net Add font section to theme section + Sun Mar 4 13:49:37 EST 2007 - danakj(a)orodu.net + Removing font shadows - they are going back into the themerc --> - - - - - - - - defines the number and names of desktops diff --git a/openbox/config.c b/openbox/config.c index 8f197df5..5e1ee09a 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -452,9 +452,6 @@ static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, gint size = RrDefaultFontSize; RrFontWeight weight = RrDefaultFontWeight; RrFontSlant slant = RrDefaultFontSlant; - gboolean shadow = RrDefaultFontShadow; - gint offset = RrDefaultFontShadowOffset; - gchar tint = RrDefaultFontShadowTint; if (parse_attr_contains("ActiveWindow", n, "place")) font = &config_font_activewindow; @@ -489,24 +486,8 @@ static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, slant = RR_FONTSLANT_OBLIQUE; g_free(s); } - if ((fnode = parse_find_node("shadow", n->children))) { - xmlNodePtr snode; - gboolean s; - if (parse_attr_bool("enabled", fnode, &s)) - shadow = s; - - if ((snode = parse_find_node("offset", fnode->children))) - offset = parse_int(doc, snode); - if ((snode = parse_find_node("tint", fnode->children))) { - tint = parse_int(doc, snode); - if (tint > 100) tint = 100; - else if (tint < -100) tint = -100; - } - } - - *font = RrFontOpen(ob_rr_inst, name, size, weight, slant, - shadow, offset, tint); + *font = RrFontOpen(ob_rr_inst, name, size, weight, slant); g_free(name); next_font: n = parse_find_node("font", n->next); -- 2.39.2