projects
/
dana
/
openbox-history.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a89939
)
actually allow raised, but default to flat for parentrelative
author
Mikael Magnusson
<mikachu@comhem.se>
Mon, 4 Jun 2007 16:13:34 +0000
(16:13 +0000)
committer
Mikael Magnusson
<mikachu@comhem.se>
Mon, 4 Jun 2007 16:13:34 +0000
(16:13 +0000)
render/theme.c
patch
|
blob
|
history
diff --git
a/render/theme.c
b/render/theme.c
index
f3f7e5f
..
313f834
100644
(file)
--- a/
render/theme.c
+++ b/
render/theme.c
@@
-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) {