diff options
author | Benjamin Otte <otte.benjamin@googlemail.com> | 2021-01-10 21:37:03 +0000 |
---|---|---|
committer | Benjamin Otte <otte.benjamin@googlemail.com> | 2021-01-10 21:37:03 +0000 |
commit | 0f052d46b2c4b85e84a5e99ffb186edc82e4a031 (patch) | |
tree | 7e1c3494c9a09b388fffc72458eca6dca6489070 | |
parent | 506423cf23be826851715c97be976278b15d65b9 (diff) | |
download | gtk+-otte/for-master2.tar.gz |
Remove guarantees we do not intend to holdotte/for-master2
The fact that we are using gdk-pixbuf for loading files currrently does not mean we will use it going forward.
Also, "anything gdk-pixbuf can load" does not mean anything, because what gdk-pixbuf can load is a compile-time option.
As new_from_resource() will assert() if it cannot load a resource, we must be very sure that people do not use anything but PNG and JPEG for resources and the docs were not clear on that.
-rw-r--r-- | gdk/gdktexture.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdk/gdktexture.c b/gdk/gdktexture.c index d54bb73e16..f69cc47f06 100644 --- a/gdk/gdktexture.c +++ b/gdk/gdktexture.c @@ -316,9 +316,9 @@ gdk_texture_new_for_pixbuf (GdkPixbuf *pixbuf) * @resource_path: the path of the resource file * * Creates a new texture by loading an image from a resource. - * The file format is detected automatically, and can be any - * format that is supported by the gdk-pixbuf library, such as - * JPEG or PNG. + * The file format is detected automatically. + * The supported formats are PNG and JPEG, though more formats might be + * available. * * It is a fatal error if @resource_path does not specify a valid * image resource and the program will abort if that happens. @@ -352,9 +352,9 @@ gdk_texture_new_from_resource (const char *resource_path) * @error: Return location for an error * * Creates a new texture by loading an image from a file. - * The file format is detected automatically, and can be any - * format that is supported by the gdk-pixbuf library, such as - * JPEG or PNG. + * The file format is detected automatically. + * The supported formats are PNG and JPEG, though more formats might be + * available. * * If %NULL is returned, then @error will be set. * |