From: Dave Foster Date: Fri, 14 Sep 2007 03:13:56 +0000 (-0400) Subject: Another way of getting at button-*.toggled.unpressed (no unpressed needed). X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b566d3fcfe7a23b0616d776fd2db17ef7461185e;p=chaz%2Fopenbox Another way of getting at button-*.toggled.unpressed (no unpressed needed). --- 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",