[metacity/cowbell] reorder buttons so they're all together in the enum and we can loop over them



commit 254078aca5ab5a94847aa8454f1d3acf1ac4f615
Author: Thomas Thurman <tthurman gnome org>
Date:   Fri Oct 23 12:37:06 2009 -0400

    reorder buttons so they're all together in the enum and we can loop over them

 src/ui/theme.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index a1544f5..af756d1 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -46,10 +46,13 @@ MetaTheme *the_theme = NULL;
 typedef enum _CopperClasses {
   CC_FRAME,
   CC_CONTENT, CC_TITLEBAR,
-  CC_MENU, CC_TITLE,
+  CC_TITLE,
+  CC_MENU,
+  CC_BUTTON_FIRST = CC_MENU,
   CC_MINIMIZE, CC_MAXIMIZE, CC_CLOSE,
   CC_SHADE, CC_ABOVE, CC_STICK,
   CC_UNSHADE, CC_UNABOVE, CC_UNSTICK,
+  CC_BUTTON_LAST = CC_UNSTICK,
   CC_FILLER,
   CC_LAST
 } CopperClasses;
@@ -58,7 +61,8 @@ char *names[] =
   {
     "frame",
     "area", "area",
-    "button", "title",
+    "title",
+    "button",
     "button", "button", "button",
     "button", "button", "button",
     "button", "button", "button",
@@ -82,7 +86,8 @@ char *cowbell_classnames[] =
   {
     NULL,
     "content", "titlebar",
-    "menu", NULL,
+    NULL,
+    "menu",
     "minimize", "maximize", "close",
     "shade", "above", "stick",
     "unshade", "unabove", "unstick",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]