[metacity/cowbell] human names array
- From: Thomas James Alexander Thurman <tthurman src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [metacity/cowbell] human names array
- Date: Fri, 23 Oct 2009 18:10:21 +0000 (UTC)
commit a13fc22e3e1e7d3854c8f7a05b5301466000c5b5
Author: Thomas Thurman <tthurman gnome org>
Date: Fri Oct 23 14:02:06 2009 -0400
human names array
src/ui/theme.c | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 18365fa..8c27a91 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -58,6 +58,11 @@ typedef enum _CopperClasses {
CC_LAST
} CopperClasses;
+/**
+ * The element names of each CopperClass.
+ *
+ * \bug For heaven's sake change the identifier
+ */
char *names[] =
{
"frame",
@@ -71,6 +76,10 @@ char *names[] =
"last"
};
+/**
+ * The parent class of each CopperClass, or
+ * CC_LAST if it has none.
+ */
CopperClasses parents[] =
{
CC_LAST,
@@ -83,6 +92,10 @@ CopperClasses parents[] =
CC_LAST
};
+/**
+ * The class (in the CSS sense) of each
+ * CopperClass, or NULL if it has none.
+ */
char *cowbell_classnames[] =
{
NULL,
@@ -96,6 +109,29 @@ char *cowbell_classnames[] =
NULL
};
+/**
+ * Names of each CopperClass, for debugging.
+ */
+char *cowbell_human_names[] =
+ {
+ "Frame",
+ "Content area",
+ "Titlebar",
+ "Title",
+ "Menu button",
+ "Min",
+ "Max",
+ "Close",
+ "Shade",
+ "Above",
+ "Stick",
+ "Unshade",
+ "Unabove",
+ "Unstick",
+ "Filler",
+ NULL
+ };
+
typedef struct
{
ccss_node_t basic;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]