From d61130ff1cda1cc1ae307e76abc20a2bae92afca Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 9 Nov 2021 15:08:33 +0000 Subject: docs: Fix the XPM data annotation Make sure that the array is annotated as zero-terminated. --- gdk-pixbuf/gdk-pixbuf-io.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdk-pixbuf') 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); -- cgit v1.2.1