summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2010-02-26 14:08:30 +0100
committerNick Schermer <nick@xfce.org>2010-02-26 14:11:53 +0100
commitee04793db7e7dc2e4b284fdedc2871dc8e19eff1 (patch)
treedd7d43d2dd436f190e02f7225300028216ffe974 /common
parentd94b187679f74260b3cf8cf01829d58fbb94a0af (diff)
Some recent work on the tasklist.
Adds internal support for group buttons. Working support for the overflow menu when the buttons don't fit. Ctrl click to access the panel menu on tasklist buttons. And a lot of other stuff I can't remember.
Diffstat (limited to 'common')
-rw-r--r--common/panel-debug.h1
-rw-r--r--common/panel-private.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/common/panel-debug.h b/common/panel-debug.h
index dc7fc618..349033ed 100644
--- a/common/panel-debug.h
+++ b/common/panel-debug.h
@@ -24,6 +24,7 @@
#define PANEL_DEBUG_DOMAIN_APPLICATION "application"
#define PANEL_DEBUG_DOMAIN_EXTERNAL "external"
#define PANEL_DEBUG_DOMAIN_EXTERNAL46 "external46"
+#define PANEL_DEBUG_DOMAIN_TASKLIST "tasklist"
#define PANEL_DEBUG_BOOL(bool) ((bool) ? "true" : "false")
diff --git a/common/panel-private.h b/common/panel-private.h
index a0830f0d..f3613710 100644
--- a/common/panel-private.h
+++ b/common/panel-private.h
@@ -64,6 +64,11 @@
* without asking the user what to do */
#define PANEL_PLUGIN_AUTO_RESTART (60)
+/* integer swap functions */
+#define SWAP_INTEGER(a,b) G_STMT_START { gint swp = a; a = b; b = swp; } G_STMT_END
+#define TRANSPOSE_AREA(area) G_STMT_START { SWAP_INTEGER (area.width, area.height); \
+ SWAP_INTEGER (area.x, area.y); } G_STMT_END
+
/* quick GList and GSList counting without traversing */
#define LIST_HAS_ONE_ENTRY(l) ((l) != NULL && (l)->next == NULL)
#define LIST_HAS_ONE_OR_NO_ENTRIES(l) ((l) == NULL || (l)->next == NULL)