]> Dogcows Code - chaz/openbox/commitdiff
actually allow raised, but default to flat for parentrelative
authorMikael Magnusson <mikachu@comhem.se>
Mon, 4 Jun 2007 16:13:34 +0000 (16:13 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Mon, 4 Jun 2007 16:13:34 +0000 (16:13 +0000)
render/theme.c

index f3f7e5f4883690e974ff276decd1105ec7fc4522..313f834c51653990f9f20688459118e213075392 100644 (file)
@@ -1476,10 +1476,13 @@ static void parse_style(gchar *tex, RrSurfaceColorType *grad,
 
     if (strstr(tex, "sunken") != NULL)
         *relief = RR_RELIEF_SUNKEN;
-    else if ((strstr(tex, "flat") != NULL) || (*grad == RR_SURFACE_PARENTREL))
+    else if (strstr(tex, "flat") != NULL)
         *relief = RR_RELIEF_FLAT;
-    else
+    else if (strstr(tex, "raised") != NULL)
         *relief = RR_RELIEF_RAISED;
+    else
+        *relief = (*grad == RR_SURFACE_PARENTREL) ?
+                  RR_RELIEF_FLAT : RR_RELIEF_RAISED;
 
     *border = FALSE;
     if (*relief == RR_RELIEF_FLAT) {
This page took 0.026121 seconds and 4 git commands to generate.