diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-06-26 16:33:50 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-07-03 14:39:26 +0200 |
commit | 31fc70721e91d09ff7e3e7df62ce8f9c8c8eb037 (patch) | |
tree | e37a6361d9fd27a4b38e0ea2d495cbc9044a0078 /gtk/gtkimage.h | |
parent | 031e1a98a0d26682572906b3a3853a284412aaf1 (diff) | |
download | gtk+-31fc70721e91d09ff7e3e7df62ce8f9c8c8eb037.tar.gz |
GtkImage: Add new_from_surface() and set_from_surface()
Diffstat (limited to 'gtk/gtkimage.h')
-rw-r--r-- | gtk/gtkimage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkimage.h b/gtk/gtkimage.h index eb5be482c1..a7fede0a88 100644 --- a/gtk/gtkimage.h +++ b/gtk/gtkimage.h @@ -133,6 +133,8 @@ GtkWidget* gtk_image_new_from_icon_name (const gchar *icon_name, GDK_AVAILABLE_IN_ALL GtkWidget* gtk_image_new_from_gicon (GIcon *icon, GtkIconSize size); +GDK_AVAILABLE_IN_3_10 +GtkWidget* gtk_image_new_from_surface (cairo_surface_t *surface); GDK_AVAILABLE_IN_ALL void gtk_image_clear (GtkImage *image); @@ -164,6 +166,9 @@ GDK_AVAILABLE_IN_ALL void gtk_image_set_from_gicon (GtkImage *image, GIcon *icon, GtkIconSize size); +GDK_AVAILABLE_IN_3_10 +void gtk_image_set_from_surface (GtkImage *image, + cairo_surface_t *surface); GDK_AVAILABLE_IN_ALL void gtk_image_set_pixel_size (GtkImage *image, gint pixel_size); |