summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-11-09 15:08:33 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2021-11-09 15:08:33 +0000
commitd61130ff1cda1cc1ae307e76abc20a2bae92afca (patch)
tree4822570789da59325f700713f41ee1aa4ecd78f5 /gdk-pixbuf
parentc3c79693ec3181b2e5f523d5a006da41b98b8954 (diff)
downloadgdk-pixbuf-d61130ff1cda1cc1ae307e76abc20a2bae92afca.tar.gz
docs: Fix the XPM data annotation
Make sure that the array is annotated as zero-terminated.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-io.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.h b/gdk-pixbuf/gdk-pixbuf-io.h
index 6692ad6a9..cac75f242 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.h
+++ b/gdk-pixbuf/gdk-pixbuf-io.h
@@ -223,18 +223,18 @@ struct _GdkPixbufModulePattern {
*
* In case of error, this function should return `NULL` and set the `error` argument.
*
- * Returns: (transfer full): a `GdkPixbuf` with the contents of the file
+ * Returns: (transfer full): a newly created `GdkPixbuf` for the contents of the file
*/
typedef GdkPixbuf *(* GdkPixbufModuleLoadFunc) (FILE *f,
GError **error);
/**
* GdkPixbufModuleLoadXpmDataFunc:
- * @data: the XPM data, as an array
+ * @data: (array zero-terminated=1): the XPM data
*
* Loads XPM data into a new `GdkPixbuf`.
*
- * Returns: (transfer full): a `GdkPixbuf` with the XPM data
+ * Returns: (transfer full): a newly created `GdkPixbuf` for the XPM data
*/
typedef GdkPixbuf *(* GdkPixbufModuleLoadXpmDataFunc) (const char **data);
@@ -247,7 +247,7 @@ typedef GdkPixbuf *(* GdkPixbufModuleLoadXpmDataFunc) (const char **data);
*
* In case of error, this function should return `NULL` and set the `error` argument.
*
- * Returns: (transfer full): a `GdkPixbufAnimation` with the contents of the file
+ * Returns: (transfer full): a newly created `GdkPixbufAnimation` for the contents of the file
*/
typedef GdkPixbufAnimation *(* GdkPixbufModuleLoadAnimationFunc) (FILE *f,
GError **error);