GdkTexture: Don't mention private new_from_surface
authorDaniel Boles <dboles.src@gmail.com>
Wed, 5 Jul 2023 11:07:33 +0000 (12:07 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Wed, 5 Jul 2023 11:07:33 +0000 (12:07 +0100)
The stuff about Cairo Surfaces is in gdktextureprivate.h, & so end users
will not be able to use them; we shouldn't confuse by implying they can.

gdk/gdktexture.c

index 8c8de2d42d6cd768d3ad52a015b6240ca6a54433..ca53f036c2c88bb3f4f625268b2406820147ce86 100644 (file)
@@ -25,7 +25,8 @@
  * multiple frames, and will be used for a long time.
  *
  * There are various ways to create `GdkTexture` objects from a
- * [class@GdkPixbuf.Pixbuf], or a Cairo surface, or other pixel data.
+ * [class@GdkPixbuf.Pixbuf], or from bytes stored in memory, a file, or a
+ * [struct@Gio.Resource].
  *
  * The ownership of the pixel data is transferred to the `GdkTexture`
  * instance; you can only make a copy of it, via [method@Gdk.Texture.download].