Browse Source

Add macro to expand a gdkcolor to double values.

upstream/xfce4-panel-4.10.1
Nick Schermer 12 years ago
parent
commit
48ab283aeb
  1. 5
      common/panel-private.h

5
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__ */
Loading…
Cancel
Save