[gdk-pixbuf] Fix gdk_pixbuf_new_from_data() annotation
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] Fix gdk_pixbuf_new_from_data() annotation
- Date: Fri, 25 Mar 2011 16:48:00 +0000 (UTC)
commit a20da837d1e4e349464abff4568f6fa04ba199ad
Author: Martin Pitt <martin pitt ubuntu com>
Date: Fri Mar 25 17:45:54 2011 +0100
Fix gdk_pixbuf_new_from_data() annotation
For the data argument, g-i was previously assuming a guint8 data type. Properly
declare it as an array of chars now, so that you can actually pass an array or
a string from bindings.
Also add missing closure annotation for the callback user data.
gdk-pixbuf/gdk-pixbuf-data.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-data.c b/gdk-pixbuf/gdk-pixbuf-data.c
index 5f4ce8e..2951e13 100644
--- a/gdk-pixbuf/gdk-pixbuf-data.c
+++ b/gdk-pixbuf/gdk-pixbuf-data.c
@@ -30,7 +30,7 @@
/**
* gdk_pixbuf_new_from_data:
- * @data: Image data in 8-bit/sample packed format
+ * @data: (array) (element-type char): Image data in 8-bit/sample packed format
* @colorspace: Colorspace for the image data
* @has_alpha: Whether the data has an opacity channel
* @bits_per_sample: Number of bits per sample
@@ -39,7 +39,7 @@
* @rowstride: Distance in bytes between row starts
* @destroy_fn: (scope async): Function used to free the data when the pixbuf's reference count
* drops to zero, or %NULL if the data should not be freed
- * @destroy_fn_data: Closure data to pass to the destroy notification function
+ * @destroy_fn_data: (closure): Closure data to pass to the destroy notification function
*
* Creates a new #GdkPixbuf out of in-memory image data. Currently only RGB
* images with 8 bits per sample are supported.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]