summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Foster <daf@minuslab.net>2007-09-13 23:13:56 -0400
committerMikael Magnusson <mikachu@gmail.com>2010-10-14 15:49:20 +0200
commitb566d3fcfe7a23b0616d776fd2db17ef7461185e (patch)
treecd6d35271d4c6e3a5cfc499eb651536d7828befe
parent9bc70d9373a5f5f467d4aa285c0233af949ebcd4 (diff)
Another way of getting at button-*.toggled.unpressed (no unpressed needed).
-rw-r--r--obrender/theme.c42
1 files changed, 24 insertions, 18 deletions
diff --git a/obrender/theme.c b/obrender/theme.c
index de33f1b3..4b099890 100644
--- a/obrender/theme.c
+++ b/obrender/theme.c
@@ -693,12 +693,14 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name,
theme->a_unfocused_unpressed_max);
/* toggled unpressed */
- READ_APPEARANCE_COPY("window.active.button-max.toggled.unpressed.bg",
- theme->a_toggled_focused_unpressed_max, TRUE,
- theme->a_focused_pressed_max);
- READ_APPEARANCE_COPY("window.inactive.button-max.toggled.unpressed.bg",
- theme->a_toggled_unfocused_unpressed_max, TRUE,
- theme->a_unfocused_pressed_max);
+ READ_APPEARANCE_("window.active.button-max.toggled.unpressed.bg",
+ "window.active.button-max.toggled.bg",
+ theme->a_toggled_focused_unpressed_max, TRUE,
+ theme->a_focused_pressed_max);
+ READ_APPEARANCE_("window.inactive.button-max.toggled.unpressed.bg",
+ "window.inactive.button-max.toggled.bg",
+ theme->a_toggled_unfocused_unpressed_max, TRUE,
+ theme->a_unfocused_pressed_max);
/* toggled pressed */
READ_APPEARANCE_COPY("window.active.button-max.toggled.pressed.bg",
@@ -773,12 +775,14 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name,
theme->a_unfocused_unpressed_desk);
/* toggled unpressed */
- READ_APPEARANCE_COPY("window.active.button-desk.toggled.unpressed.bg",
- theme->a_toggled_focused_unpressed_desk, TRUE,
- theme->a_focused_pressed_desk);
- READ_APPEARANCE_COPY("window.inactive.button-desk.toggled.unpressed.bg",
- theme->a_toggled_unfocused_unpressed_desk, TRUE,
- theme->a_unfocused_pressed_desk);
+ READ_APPEARANCE_("window.active.button-desk.toggled.unpressed.bg",
+ "window.active.button-desk.toggled.bg",
+ theme->a_toggled_focused_unpressed_desk, TRUE,
+ theme->a_focused_pressed_desk);
+ READ_APPEARANCE_("window.inactive.button-desk.toggled.unpressed.bg",
+ "window.inactive.button-desk.toggled.bg",
+ theme->a_toggled_unfocused_unpressed_desk, TRUE,
+ theme->a_unfocused_pressed_desk);
/* toggled pressed */
READ_APPEARANCE_COPY("window.active.button-desk.toggled.pressed.bg",
@@ -827,12 +831,14 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name,
theme->a_unfocused_unpressed_shade);
/* toggled unpressed */
- READ_APPEARANCE_COPY("window.active.button-shade.toggled.unpressed.bg",
- theme->a_toggled_focused_unpressed_shade, TRUE,
- theme->a_focused_pressed_shade);
- READ_APPEARANCE_COPY("window.inactive.button-shade.toggled.unpressed.bg",
- theme->a_toggled_unfocused_unpressed_shade, TRUE,
- theme->a_unfocused_pressed_shade);
+ READ_APPEARANCE_("window.active.button-shade.toggled.unpressed.bg",
+ "window.active.button-shade.toggled.bg",
+ theme->a_toggled_focused_unpressed_shade, TRUE,
+ theme->a_focused_pressed_shade);
+ READ_APPEARANCE_("window.inactive.button-shade.toggled.unpressed.bg",
+ "window.inactive.button-shade.toggled.bg",
+ theme->a_toggled_unfocused_unpressed_shade, TRUE,
+ theme->a_unfocused_pressed_shade);
/* toggled pressed */
READ_APPEARANCE_COPY("window.active.button-shade.toggled.pressed.bg",