diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-08-14 21:40:25 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-08-14 21:40:25 +0000 |
commit | 05178612dee5abf2e00655b69e32f09658625f34 (patch) | |
tree | e9d9774bde269ab0cfbf348c956ee9704a775a19 /gtk/gui_utils.h | |
parent | a17cde69ecf02d30ed345493f91dbbb837ddee7f (diff) |
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
Diffstat (limited to 'gtk/gui_utils.h')
-rw-r--r-- | gtk/gui_utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
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__ */ |