]> Dogcows Code - chaz/openbox/commitdiff
Button structure.
authorDave Foster <daf@minuslab.net>
Fri, 7 Dec 2007 19:00:47 +0000 (14:00 -0500)
committerMikael Magnusson <mikachu@gmail.com>
Thu, 14 Oct 2010 13:54:47 +0000 (15:54 +0200)
obrender/button.c

index 399888dc8f389e546c29253ce380531c65945d96..0c92abe4c999f85cd2e41a3a457509fde62a6fb2 100644 (file)
@@ -57,7 +57,7 @@ RrButton *RrButtonNew (const RrInstance *inst)
     return out;
 }
 
-void RrButtonFree(RrButtonb)
+void RrButtonFree(RrButton *b)
 {
     /* colors */
     if (b->focused_unpressed_color) 
@@ -90,27 +90,27 @@ void RrButtonFree(RrButton* b)
         RrColorFree(b->toggled_unfocused_unpressed_color);
 
     /* masks */
-    if (mask) RrPixmapMaskFree(mask);
-    if (pressed_mask) RrPixmapMaskFree(pressed_mask);
-    if (disabled_mask) RrPixmapMaskFree(disabled_mask);
-    if (hover_mask) RrPixmapMaskFree(hover_mask);
-    if (toggled_mask) RrPixmapMaskFree(toggled_mask);
-    if (toggled_hover_mask) RrPixmapMaskFree(toggled_hover_mask);
-    if (toggled_pressed_mask) RrPixmapMaskFree(toggled_pressed_mask);
+    if (b->mask) RrPixmapMaskFree(b->mask);
+    if (b->pressed_mask) RrPixmapMaskFree(b->pressed_mask);
+    if (b->disabled_mask) RrPixmapMaskFree(b->disabled_mask);
+    if (b->hover_mask) RrPixmapMaskFree(b->hover_mask);
+    if (b->toggled_mask) RrPixmapMaskFree(b->toggled_mask);
+    if (b->toggled_hover_mask) RrPixmapMaskFree(b->toggled_hover_mask);
+    if (b->toggled_pressed_mask) RrPixmapMaskFree(b->toggled_pressed_mask);
 
     /* appearances */
-    RrAppearanceFree(a_focused_unpressed);
-    RrAppearanceFree(a_unfocused_unpressed);
-    RrAppearanceFree(a_focused_pressed);
-    RrAppearanceFree(a_unfocused_pressed);
-    RrAppearanceFree(a_disabled_focused);
-    RrAppearanceFree(a_disabled_unfocused);
-    RrAppearanceFree(a_hover_focused);
-    RrAppearanceFree(a_hover_unfocused);
-    RrAppearanceFree(a_toggled_focused_unpressed);
-    RrAppearanceFree(a_toggled_unfocused_unpressed);
-    RrAppearanceFree(a_toggled_focused_pressed);
-    RrAppearanceFree(a_toggled_unfocused_pressed);
-    RrAppearanceFree(a_toggled_hover_focused);
-    RrAppearanceFree(a_toggled_hover_unfocused);
+    RrAppearanceFree(b->a_focused_unpressed);
+    RrAppearanceFree(b->a_unfocused_unpressed);
+    RrAppearanceFree(b->a_focused_pressed);
+    RrAppearanceFree(b->a_unfocused_pressed);
+    RrAppearanceFree(b->a_disabled_focused);
+    RrAppearanceFree(b->a_disabled_unfocused);
+    RrAppearanceFree(b->a_hover_focused);
+    RrAppearanceFree(b->a_hover_unfocused);
+    RrAppearanceFree(b->a_toggled_focused_unpressed);
+    RrAppearanceFree(b->a_toggled_unfocused_unpressed);
+    RrAppearanceFree(b->a_toggled_focused_pressed);
+    RrAppearanceFree(b->a_toggled_unfocused_pressed);
+    RrAppearanceFree(b->a_toggled_hover_focused);
+    RrAppearanceFree(b->a_toggled_hover_unfocused);
 }
This page took 0.0259 seconds and 4 git commands to generate.