[gtk/wip/baedert/for-master: 3/4] pixbuf: Add a missing return value transfer annotation



commit f0266cbef3b6563ea54f89e3ec02fbcd71c57c95
Author: Timm Bäder <mail baedert org>
Date:   Fri Sep 13 05:53:17 2019 +0200

    pixbuf: Add a missing return value transfer annotation
    
    And add a (nullable)

 gdk/gdkpixbuf-drawable.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gdk/gdkpixbuf-drawable.c b/gdk/gdkpixbuf-drawable.c
index 8bc31ba4be..e90edc1f20 100644
--- a/gdk/gdkpixbuf-drawable.c
+++ b/gdk/gdkpixbuf-drawable.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]