diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-01-04 17:07:26 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-01-04 17:07:26 +0000 |
commit | d9d58c34f298a0c3340bfb01976ffe0c7a49c317 (patch) | |
tree | b16578a07fdd3acaff62dd0204d2f9f97b885c53 /ui/gtk/color_utils.h | |
parent | 886ac9a613b48746c2a9f389de96a92a4b3ffcb6 (diff) |
Add a wrapper for gdk_cairo_set_source_rgba() in GTK2 and use it in io_stat.c
svn path=/trunk/; revision=46932
Diffstat (limited to 'ui/gtk/color_utils.h')
-rw-r--r-- | ui/gtk/color_utils.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/gtk/color_utils.h b/ui/gtk/color_utils.h index 91ca97eac4..6f29625160 100644 --- a/ui/gtk/color_utils.h +++ b/ui/gtk/color_utils.h @@ -25,6 +25,8 @@ #ifndef __COLORS_H__ #define __COLORS_H__ +#include "ui/gtk/gui_utils.h" + /** @file * Definitions for color structures and routines */ @@ -49,22 +51,22 @@ void colors_init(void); #if 0 gboolean get_color(GdkColor *new_color); #endif + /** Convert color_t to GdkColor. * * @param target the GdkColor to be filled * @param source the source color_t */ void color_t_to_gdkcolor(GdkColor *target, const color_t *source); -#if GTK_CHECK_VERSION(3,0,0) void color_t_to_gdkRGBAcolor(GdkRGBA *target, const color_t *source); -#endif /** Convert GdkColor to color_t. * * @param target the source color_t * @param source the GdkColor to be filled */ void gdkcolor_to_color_t(color_t *target, const GdkColor *source); -#if GTK_CHECK_VERSION(3,0,0) void gdkRGBAcolor_to_color_t(color_t *target, const GdkRGBA *source); -#endif + +void GdkColor_to_GdkRGBA(GdkRGBA *target, const GdkColor *source); +void gdkRGBAcolor_to_GdkColor(GdkColor *target, const GdkRGBA *source); #endif /* __COLORS_H__ */ |