]> Dogcows Code - chaz/openbox/commitdiff
i moved the font shadow stuff back into the theme, so move them out of the font confi...
authorDana Jansens <danakj@orodu.net>
Sun, 4 Mar 2007 18:49:16 +0000 (18:49 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 4 Mar 2007 18:49:16 +0000 (18:49 +0000)
data/rc.xml.in
data/rc.xsd
openbox/config.c

index e7b4d5098cb1b2085f1fc22476a5b787d6467ca7..b2b6be237e9d4edb41b1bd2170cc96e0dc132e28 100644 (file)
     <size>7</size>
     <weight>bold</weight>
     <slant>normal</slant>
-    <shadow enabled="yes">
-      <offset>1</offset>
-      <tint>30</tint>
-    </shadow>
   </font>
   <font place="InactiveWindow">
     <name>arial,sans</name>
     <size>7</size>
     <weight>bold</weight>
     <slant>normal</slant>
-    <shadow enabled="yes">
-      <offset>1</offset>
-      <tint>30</tint>
-    </shadow>
   </font>
   <font place="MenuTitle">
     <name>arial,sans</name>
     <size>8</size>
     <weight>bold</weight>
     <slant>normal</slant>
-    <shadow enabled="yes">
-      <offset>1</offset>
-      <tint>30</tint>
-    </shadow>
   </font>
   <font place="MenuItem">
     <name>arial,sans</name>
     <size>8</size>
     <weight>bold</weight>
     <slant>normal</slant>
-    <shadow enabled="yes">
-      <offset>1</offset>
-      <tint>30</tint>
-    </shadow>
   </font>
 </theme>
 
index 7a3dba6144d700fb73b4472fe05b91a7937df7c5..1ca631fcb087b4755a24fc9f95cd878d559ac332 100644 (file)
@@ -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
 -->
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
     targetNamespace="http://openbox.org/"
             <xs:element minOccurs="0" name="size" type="xs:integer"/>
             <xs:element minOccurs="0" name="weight" type="ob:fontweight"/>
             <xs:element minOccurs="0" name="slant" type="ob:fontslant"/>
-            <xs:element minOccurs="0" name="shadow" type="ob:fontshadow"/>
         </xs:sequence>
     </xs:complexType>
-    <xs:complexType name="fontshadow">
-        <xs:sequence>
-            <xs:element minOccurs="0" name="offset" type="xs:integer"/>
-            <xs:element minOccurs="0" name="tint" type="xs:integer"/>
-        </xs:sequence>
-        <xs:attribute name="enabled" type="ob:bool" use="required"/>
-    </xs:complexType>
     <xs:complexType name="desktops">
         <xs:annotation>
             <xs:documentation>defines the number and names of desktops</xs:documentation>
index 8f197df57adeafddebd0b48f3e21e6473630fc17..5e1ee09a4dee203cbfa7d0c26ade0c5d57d70973 100644 (file)
@@ -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);
This page took 0.030047 seconds and 4 git commands to generate.