pixbuf: Add a missing return value transfer annotation
authorTimm Bäder <mail@baedert.org>
Fri, 13 Sep 2019 03:53:17 +0000 (05:53 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 13 Sep 2019 09:07:56 +0000 (11:07 +0200)
And add a (nullable)

gdk/gdkpixbuf-drawable.c

index 8bc31ba4beeaa8fe78d4597c39879598de5adf05..e90edc1f20b221109ed411333799a190f405f30b 100644 (file)
@@ -232,7 +232,8 @@ gdk_pixbuf_get_from_surface  (cairo_surface_t *surface,
  * in newly written code as later stages will almost certainly convert
  * the pixbuf back into a texture to draw it on screen.
  *
- * returns: a new #GdkPixbuf
+ * Returns: (transfer full) (nullable): a new #GdkPixbuf or %NULL
+ *   in case of an error
  */
 GdkPixbuf *
 gdk_pixbuf_get_from_texture (GdkTexture *texture)