From: Mikael Magnusson Date: Thu, 24 Aug 2006 22:04:19 +0000 (+0000) Subject: strstr is our friend, thanks merry X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=d4b90d3641c2a9845abba9aa7d51939d59951db4;p=chaz%2Fopenbox strstr is our friend, thanks merry --- diff --git a/render/theme.c b/render/theme.c index b1cce15b..0e02ae8b 100644 --- a/render/theme.c +++ b/render/theme.c @@ -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 {