diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-01-10 16:43:17 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-01-10 16:43:17 -0500 |
commit | 0f76228c15b87c2ef805f3f1892e31b745bb00d9 (patch) | |
tree | b43eab23230907e0686fba5eb1c5694efb52772d /gtk/gtkimage.c | |
parent | 185525a58de1ed81b5e3ac707ba6764592964b1e (diff) | |
download | gtk+-0f76228c15b87c2ef805f3f1892e31b745bb00d9.tar.gz |
docs: Mention textures in the GtkImage docs
This is now the preferred way to load images.
Diffstat (limited to 'gtk/gtkimage.c')
-rw-r--r-- | gtk/gtkimage.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index 64f47ea0d9..c8e5e9072d 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -43,11 +43,11 @@ * SECTION:gtkimage * @Short_description: A widget displaying an image * @Title: GtkImage - * @See_also:#GdkPixbuf + * @SeeAlso: #GdkTexture * * The #GtkImage widget displays an image. Various kinds of object * can be displayed as an image; most typically, you would load a - * #GdkPixbuf ("pixel buffer") from a file, and then display that. + * #GdkTexture from a file, and then display that. * There’s a convenience function to do this, gtk_image_new_from_file(), * used as follows: * |[<!-- language="C" --> @@ -58,8 +58,8 @@ * “broken image” icon similar to that used in many web browsers. * If you want to handle errors in loading the file yourself, * for example by displaying an error message, then load the image with - * gdk_pixbuf_new_from_file(), then create the #GtkImage with - * gtk_image_new_from_pixbuf(). + * gdk_texture_new_from_file(), then create the #GtkImage with + * gtk_image_new_from_texture(). * * Sometimes an application will want to avoid depending on external data * files, such as image files. See the documentation of #GResource for details. |