diff options
author | Nick Schermer <nick@xfce.org> | 2010-02-26 14:08:15 +0100 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2010-02-26 14:11:37 +0100 |
commit | 48ab283aebd43c195ecea64c824421e313b67da5 (patch) | |
tree | a8d7ec3e6a72dcbdb16466aee8346cbb5f07d15a /common | |
parent | 08f54b2dd79eb40d68ddd22ec721f27f29bc8c17 (diff) | |
download | xfce4-panel-48ab283aebd43c195ecea64c824421e313b67da5.tar.gz |
Add macro to expand a gdkcolor to double values.
Diffstat (limited to 'common')
-rw-r--r-- | 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 465a2236..4c603f24 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 |