diff options
author | Stefano Karapetsas <[email protected]> | 2013-07-24 18:07:09 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-07-24 18:07:09 +0200 |
commit | d89968247ad185d4c9e37ab9930cb64dcda058dd (patch) | |
tree | f63c7a4b9cf0dc3e14610c1ddfbaa6ff20f0ad71 /eel/eel-gdk-pixbuf-extensions.h | |
parent | 3d3cfc6566a29aea5da9f3223f3d4a0e28e3fa60 (diff) | |
download | caja-d89968247ad185d4c9e37ab9930cb64dcda058dd.tar.bz2 caja-d89968247ad185d4c9e37ab9930cb64dcda058dd.tar.xz |
eel: Add GTK3 support
Diffstat (limited to 'eel/eel-gdk-pixbuf-extensions.h')
-rw-r--r-- | eel/eel-gdk-pixbuf-extensions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/eel/eel-gdk-pixbuf-extensions.h b/eel/eel-gdk-pixbuf-extensions.h index 382cd6cd..7d31defe 100644 --- a/eel/eel-gdk-pixbuf-extensions.h +++ b/eel/eel-gdk-pixbuf-extensions.h @@ -30,6 +30,7 @@ #include <gdk-pixbuf/gdk-pixbuf.h> #include <gdk/gdk.h> #include <gio/gio.h> +#include <gtk/gtk.h> #define EEL_OPACITY_FULLY_TRANSPARENT 0 #define EEL_OPACITY_FULLY_OPAQUE 255 @@ -92,7 +93,11 @@ void eel_gdk_pixbuf_unref_if_not_null (GdkPixbuf /* Copy a pixbuf to an area of a GdkDrawable */ void eel_gdk_pixbuf_draw_to_drawable (const GdkPixbuf *pixbuf, +#if GTK_CHECK_VERSION (3, 0, 0) + cairo_t *cr, +#else GdkDrawable *drawable, +#endif int source_x, int source_y, EelIRect destination_area); |