]> Dogcows Code - chaz/openbox/commitdiff
Another way of getting at button-*.toggled.unpressed (no unpressed needed).
authorDave Foster <daf@minuslab.net>
Fri, 14 Sep 2007 03:13:56 +0000 (23:13 -0400)
committerMikael Magnusson <mikachu@gmail.com>
Thu, 14 Oct 2010 13:49:20 +0000 (15:49 +0200)
obrender/theme.c

index de33f1b36e27a68990ce11dc56180c6b9f6e3703..4b0998909bb101b3741d97b280737cc01f4d0435 100644 (file)
@@ -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",
This page took 0.024432 seconds and 4 git commands to generate.