From: Emmanuele Bassi Date: Mon, 12 Mar 2018 10:06:59 +0000 (+0000) Subject: Annotate gdk_gl_texture_new() appropriately X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~1003 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9d045db142df369bca8795315d3c6c967a99ddd3;p=gtk4.git Annotate gdk_gl_texture_new() appropriately 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. --- diff --git a/gdk/gdkgltexture.c b/gdk/gdkgltexture.c index 6a0185626a..8f93dcb879 100644 --- a/gdk/gdkgltexture.c +++ b/gdk/gdkgltexture.c @@ -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,