mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
docs: Recommend glycin for image loading
Best to send people elsewhere to avoid misunderstandings of our api.
This commit is contained in:
parent
171612671f
commit
03b19d8861
@ -33,7 +33,18 @@
|
||||
*
|
||||
* `GdkTexture` is an immutable object: That means you cannot change
|
||||
* anything about it other than increasing the reference count via
|
||||
* [method@GObject.Object.ref], and consequently, it is a thread-safe object.
|
||||
* [method@GObject.Object.ref], and consequently, it is a threadsafe object.
|
||||
*
|
||||
* GDK provides a number of threadsafe texture loading functions:
|
||||
* [ctor@Gdk.Texture.new_from_resource],
|
||||
* [ctor@Gdk.Texture.new_from_bytes],
|
||||
* [ctor@Gdk.Texture.new_from_file],
|
||||
* [ctor@Gdk.Texture.new_from_filename],
|
||||
* [ctor@Gdk.Texture.new_for_pixbuf]. Note that these are meant for loading
|
||||
* icons and resources that are shipped with the toolkit or application. It
|
||||
* is recommended that you use a dedicated image loading framework such as
|
||||
* [glycin](https://lib.rs/crates/glycin), if you need to load untrusted image
|
||||
* data.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
Loading…
Reference in New Issue
Block a user