]> Dogcows Code - chaz/openbox/commitdiff
strstr is our friend, thanks merry
authorMikael Magnusson <mikachu@comhem.se>
Thu, 24 Aug 2006 22:04:19 +0000 (22:04 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Thu, 24 Aug 2006 22:04:19 +0000 (22:04 +0000)
render/theme.c

index b1cce15bc29ba5627f31d1a01d1c59ce6b33e115..0e02ae8b1af400c3588b84de4614af0803ef8a0d 100644 (file)
@@ -1201,10 +1201,10 @@ static void parse_appearance(gchar *tex, RrSurfaceColorType *grad,
                 *grad = RR_SURFACE_MIRROR_HORIZONTAL;
             else if (strstr(tex, "horizontal") != NULL)
                 *grad = RR_SURFACE_HORIZONTAL;
-            else if (strstr(tex, "vertical") != NULL)
-                *grad = RR_SURFACE_VERTICAL;
             else if (strstr(tex, "splitvertical") != NULL)
                 *grad = RR_SURFACE_SPLIT_VERTICAL;
+            else if (strstr(tex, "vertical") != NULL)
+                *grad = RR_SURFACE_VERTICAL;
             else
                 *grad = RR_SURFACE_DIAGONAL;
         } else {
This page took 0.030121 seconds and 4 git commands to generate.