From 05178612dee5abf2e00655b69e32f09658625f34 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Sun, 14 Aug 2011 21:40:25 +0000 Subject: Make save IO graph work, I had to make a local copy of GTK 3.0 function gdk_pixbuf_get_from_surface() put in gui_util.c svn path=/trunk/; revision=38541 --- gtk/gui_utils.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gtk/gui_utils.h') diff --git a/gtk/gui_utils.h b/gtk/gui_utils.h index 5e24f646ae..ffe6cf4197 100644 --- a/gtk/gui_utils.h +++ b/gtk/gui_utils.h @@ -526,4 +526,13 @@ void ws_combo_box_set_active(GtkComboBox *combo_box, gint idx); void ws_combo_box_set_active_iter(GtkComboBox *combo_box, GtkTreeIter *iter); +#if GTK_CHECK_VERSION(2,22,0) +#if !GTK_CHECK_VERSION(3,0,0) +GdkPixbuf *gdk_pixbuf_get_from_surface (cairo_surface_t *surface, + gint src_x, + gint src_y, + gint width, + gint height); +#endif +#endif #endif /* __GUI_UTIL__H__ */ -- cgit v1.2.3