Annotate gdk_gl_texture_new() appropriately
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 12 Mar 2018 10:06:59 +0000 (10:06 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 13 Mar 2018 16:00:55 +0000 (16:00 +0000)
This is a constructor, and it needs a transfer annotation.

Sadly, the resulting introspection representation is going to be a less
than satisfactory `Gdk.gl_texture_new()`, because there is no such thing
as a GdkGLTexture in the public API.

gdk/gdkgltexture.c

index 6a0185626a1149a5f6b1dfe0413a51b41c231d2e..8f93dcb879eb4b9f77eb57884973a4189ee990a6 100644 (file)
@@ -178,7 +178,7 @@ gdk_gl_texture_release (GdkTexture *texture)
 }
 
 /**
- * gdk_gl_texture_new:
+ * gdk_gl_texture_new: (constructor)
  * @context: a #GdkGLContext
  * @id: the ID of a texture that was created with @context
  * @width: the nominal width of the texture
@@ -193,8 +193,8 @@ gdk_gl_texture_release (GdkTexture *texture)
  * which will happen when the GdkTexture object is finalized, or due to
  * an explicit call of gdk_texture_release_gl().
  *
- * Return value: A newly-created #GdkTexture
- **/
+ * Return value: (transfer full): A newly-created #GdkTexture
+ */
 GdkTexture *
 gdk_gl_texture_new (GdkGLContext   *context,
                     guint           id,