[metacity/cowbell] add extra buttons



commit 96802dff222ea665fa97ecda1385a96390b23412
Author: Thomas Thurman <tthurman gnome org>
Date:   Fri Oct 23 00:57:36 2009 -0400

    add extra buttons

 src/ui/theme.c |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 53ddfb2..0b8780f 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -23,7 +23,10 @@ MetaTheme *the_theme = NULL;
 typedef enum _CopperClasses {
   CC_FRAME,
   CC_CONTENT, CC_TITLEBAR,
-  CC_MENU, CC_TITLE, CC_MINIMIZE, CC_MAXIMIZE, CC_CLOSE,
+  CC_MENU, CC_TITLE,
+  CC_MINIMIZE, CC_MAXIMIZE, CC_CLOSE,
+  CC_SHADE, CC_ABOVE, CC_STICK,
+  CC_UNSHADE, CC_UNABOVE, CC_UNSTICK,
   CC_FILLER,
   CC_LAST
 } CopperClasses;
@@ -32,7 +35,10 @@ char *names[] =
   {
     "frame",
     "area", "area",
-    "button", "title", "button", "button", "button",
+    "button", "title",
+    "button", "button", "button",
+    "button", "button", "button",
+    "button", "button", "button",
     "area",
     "last"
   };
@@ -41,7 +47,10 @@ CopperClasses parents[] =
   {
     CC_LAST,
     CC_FRAME, CC_FRAME,
-    CC_TITLEBAR, CC_TITLEBAR, CC_TITLEBAR, CC_TITLEBAR, CC_TITLEBAR,
+    CC_TITLEBAR, CC_TITLEBAR,
+    CC_TITLEBAR, CC_TITLEBAR, CC_TITLEBAR,
+    CC_TITLEBAR, CC_TITLEBAR, CC_TITLEBAR,
+    CC_TITLEBAR, CC_TITLEBAR, CC_TITLEBAR,
     CC_TITLEBAR,
     CC_LAST
   };
@@ -50,7 +59,10 @@ char *cowbell_classnames[] =
   {
     NULL,
     "content", "titlebar",
-    "menu", NULL, "minimize", "maximize", "close",
+    "menu", NULL,
+    "minimize", "maximize", "close",
+    "shade", "above", "stick",
+    "unshade", "unabove", "unstick",
     "filler",
     NULL
   };



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