summaryrefslogtreecommitdiff
path: root/gtk/gtkimage.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2017-10-23 15:25:46 +0200
committerAlexander Larsson <alexl@redhat.com>2017-10-23 15:28:33 +0200
commit0089e4ad584571e3b658bb678891094c10596bbc (patch)
treeffc0cc3bef1058b6e63e6b12b14a6d64017966be /gtk/gtkimage.h
parent61b2ab5d9083a1e21e79d077dfcdfb40439a1693 (diff)
downloadgtk+-0089e4ad584571e3b658bb678891094c10596bbc.tar.gz
Drop pixbuf support in IconHelper and ImageDefinition
These are no longer used, instead we always covert to surface as early as possible and drop the pixbuf. This means we never store both the pixbuf and the surface at for any longer time, which is wasteful. Also, its one step further to drop GdkPixbufs from generic use in our APIs.
Diffstat (limited to 'gtk/gtkimage.h')
-rw-r--r--gtk/gtkimage.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk/gtkimage.h b/gtk/gtkimage.h
index 79fc19191d..67bbcb387f 100644
--- a/gtk/gtkimage.h
+++ b/gtk/gtkimage.h
@@ -51,7 +51,6 @@ typedef struct _GtkImageClass GtkImageClass;
/**
* GtkImageType:
* @GTK_IMAGE_EMPTY: there is no image displayed by the widget
- * @GTK_IMAGE_PIXBUF: the widget contains a #GdkPixbuf
* @GTK_IMAGE_ANIMATION: the widget contains a #GdkPixbufAnimation
* @GTK_IMAGE_ICON_NAME: the widget contains a named icon.
* This image type was added in GTK+ 2.6
@@ -63,19 +62,14 @@ typedef struct _GtkImageClass GtkImageClass;
* Describes the image data representation used by a #GtkImage. If you
* want to get the image from the widget, you can only get the
* currently-stored representation. e.g. if the
- * gtk_image_get_storage_type() returns #GTK_IMAGE_PIXBUF, then you can
- * call gtk_image_get_pixbuf(). For empty images, you can request any
+ * gtk_image_get_storage_type() returns #GTK_IMAGE_SURFACE, then you can
+ * call gtk_image_get_surface(). For empty images, you can request any
* storage type (call any of the "get" functions), but they will all
* return %NULL values.
- *
- * Note: GTK_IMAGE_PIXBUF is not not supported as storage by GtkImage. Any
- * pixbuf set on the GtkImage will be converted to a surface and can only
- * be read back as a GTK_IMAGE_SURFACE.
*/
typedef enum
{
GTK_IMAGE_EMPTY,
- GTK_IMAGE_PIXBUF,
GTK_IMAGE_ANIMATION,
GTK_IMAGE_ICON_NAME,
GTK_IMAGE_GICON,