[Xfce4-commits] <xfce4-panel:devel> Add macro to expand a gdkcolor to double values.
Nick Schermer
nick at xfce.org
Tue Aug 11 20:32:02 CEST 2009
Updating branch refs/heads/devel
to 501400095a4895c3a17768805ea665bf553dfcc3 (commit)
from 4721d09d8a62be2e5704645ac8fae88b6493d91e (commit)
commit 501400095a4895c3a17768805ea665bf553dfcc3
Author: Nick Schermer <nick at xfce.org>
Date: Fri May 1 12:08:39 2009 +0200
Add macro to expand a gdkcolor to double values.
common/panel-private.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/common/panel-private.h b/common/panel-private.h
index 465a223..4c603f2 100644
--- a/common/panel-private.h
+++ b/common/panel-private.h
@@ -42,4 +42,9 @@
#define LIST_HAS_ONE_OR_NO_ENTRIES(l) ((l) == NULL || (l)->next == NULL)
#define LIST_HAS_TWO_OR_MORE_ENTRIES(l) ((l) != NULL && (l)->next != NULL)
+/* make this easier to read */
+#define PANEL_GDKCOLOR_TO_DOUBLE(gdk_color) gdk_color->red / 65535.00, \
+ gdk_color->green / 65535.00, \
+ gdk_color->blue / 65535.00
+
#endif /* !__PANEL_PRIVATE_H__ */
\ No newline at end of file
More information about the Xfce4-commits
mailing list