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 b1cce15..0e02ae8 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 {