From b1b2cb896d0cbe4a210af4bf3b867cb89580c4c3 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 26 Dec 2015 20:20:19 +0100 Subject: GTK3 eel-gdk-pixbuf: use GdkRGBA everywhere taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=020adaf --- eel/eel-graphic-effects.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'eel/eel-graphic-effects.h') diff --git a/eel/eel-graphic-effects.h b/eel/eel-graphic-effects.h index 6ae00421..7291629b 100644 --- a/eel/eel-graphic-effects.h +++ b/eel/eel-graphic-effects.h @@ -26,6 +26,11 @@ #define EEL_GRAPHIC_EFFECTS_H #include +#include +#if GTK_CHECK_VERSION(3,0,0) +#include +#endif + /* return a lightened pixbuf for pre-lighting */ GdkPixbuf *eel_create_spotlight_pixbuf (GdkPixbuf *source_pixbuf); @@ -37,9 +42,13 @@ GdkPixbuf *eel_create_darkened_pixbuf (GdkPixbuf *source_pixbuf, /* return a pixbuf colorized with the color specified by the parameters */ GdkPixbuf* eel_create_colorized_pixbuf (GdkPixbuf *source_pixbuf, +#if GTK_CHECK_VERSION(3,0,0) + GdkRGBA *color); +#else int red_value, int green_value, int blue_value); +#endif /* stretch a image frame */ GdkPixbuf *eel_stretch_frame_image (GdkPixbuf *frame_image, -- cgit v1.2.1