diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2006-08-24 22:04:19 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2006-08-24 22:04:19 +0000 |
| commit | d4b90d3641c2a9845abba9aa7d51939d59951db4 (patch) | |
| tree | 2c315557ebbf887dce0d3138b464fe2b666e9b7d /render | |
| parent | 766e7ae9bfeb1dc0454d7b5b37296b91859831cb (diff) | |
strstr is our friend, thanks merry
Diffstat (limited to 'render')
| -rw-r--r-- | render/theme.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |
