[gtk: 2/5] gir: Add type annotations for {GL,Memory}Texture
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 2/5] gir: Add type annotations for {GL,Memory}Texture
- Date: Fri, 7 Jan 2022 03:16:20 +0000 (UTC)
commit ef9dbf73cc8551d85e01cb20100bef63a33ae261
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Thu Jan 6 17:39:06 2022 +0100
gir: Add type annotations for {GL,Memory}Texture
gdk/gdkgltexture.c | 3 ++-
gdk/gdkmemorytexture.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkgltexture.c b/gdk/gdkgltexture.c
index a1c75a62fd..40ccaf2add 100644
--- a/gdk/gdkgltexture.c
+++ b/gdk/gdkgltexture.c
@@ -383,7 +383,8 @@ gdk_gl_texture_determine_format (GdkGLTexture *self)
* which will happen when the GdkTexture object is finalized, or due to
* an explicit call of [method@Gdk.GLTexture.release].
*
- * Return value: (transfer full): A newly-created `GdkTexture`
+ * Return value: (transfer full) (type GdkGLTexture): A newly-created
+ * `GdkTexture`
*/
GdkTexture *
gdk_gl_texture_new (GdkGLContext *context,
diff --git a/gdk/gdkmemorytexture.c b/gdk/gdkmemorytexture.c
index 71df887b0b..68fdff616d 100644
--- a/gdk/gdkmemorytexture.c
+++ b/gdk/gdkmemorytexture.c
@@ -136,7 +136,7 @@ gdk_memory_sanitize (GBytes *bytes,
* The `GBytes` must contain @stride x @height pixels
* in the given format.
*
- * Returns: A newly-created `GdkTexture`
+ * Returns: (type GdkMemoryTexture): A newly-created `GdkTexture`
*/
GdkTexture *
gdk_memory_texture_new (int width,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]