diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2011-03-25 17:45:54 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2011-03-25 17:45:54 +0100 |
commit | a20da837d1e4e349464abff4568f6fa04ba199ad (patch) | |
tree | b593bbfaafb7dba05262a17370393dc1cc5597d5 /gdk-pixbuf/gdk-pixbuf-data.c | |
parent | b9943af6310ffd8ea889f472539d43b699c13cdb (diff) | |
download | gdk-pixbuf-a20da837d1e4e349464abff4568f6fa04ba199ad.tar.gz |
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.
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-data.c')
-rw-r--r-- | 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 5f4ce8e49..2951e13cc 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. |