diff options
Diffstat (limited to 'WebCore/platform/gtk/GtkVersioning.h')
-rw-r--r-- | WebCore/platform/gtk/GtkVersioning.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/WebCore/platform/gtk/GtkVersioning.h b/WebCore/platform/gtk/GtkVersioning.h index a874e9e..b40e497 100644 --- a/WebCore/platform/gtk/GtkVersioning.h +++ b/WebCore/platform/gtk/GtkVersioning.h @@ -32,8 +32,18 @@ G_BEGIN_DECLS // Macros to avoid deprecation checking churn #ifndef GTK_API_VERSION_2 #define GDK_DISPLAY() (GDK_DISPLAY_XDISPLAY(gdk_display_get_default())) +#else +GdkPixbuf* gdk_pixbuf_get_from_surface(cairo_surface_t* surface, int srcX, int srcY, + int width, int height); #endif +#if !GTK_CHECK_VERSION(2, 24, 0) +#define gdk_window_get_display(window) gdk_drawable_get_display(window) +#ifdef GDK_DISABLE_DEPRECATED +#define gdk_window_get_visual gdk_drawable_get_visual +#endif +#endif // GTK_CHECK_VERSION(2, 24, 0) + #if !GTK_CHECK_VERSION(2, 21, 2) #define gdk_visual_get_depth(visual) (visual)->depth #define gdk_visual_get_bits_per_rgb(visual) (visual)->bits_per_rgb |