[gimp/wip/nielsdg/gimprunsavefunc-missing-array-length-gir] libgimp: Fix regression in GimpRunSaveFunc




commit 961be4dd23e8063a09482ad1f1a591844355f0a7
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Tue Oct 27 18:40:24 2020 +0100

    libgimp: Fix regression in GimpRunSaveFunc
    
    Commit d3139e0f7cb added suuporting for saving/exporting with
    muti-selection, but forgot to added the necessary GObject Introspection
    annotation for the callback's `drawables` argument, which confused
    bindings.
    
    https://gitlab.gnome.org/GNOME/gimp/-/issues/5312

 libgimp/gimpexport.c        | 2 +-
 libgimp/gimpsaveprocedure.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgimp/gimpexport.c b/libgimp/gimpexport.c
index 1aa8a4de63..635ffe1722 100644
--- a/libgimp/gimpexport.c
+++ b/libgimp/gimpexport.c
@@ -767,7 +767,7 @@ export_dialog (GSList      *actions,
  * gimp_export_image:
  * @image:        Pointer to the image.
  * @n_drawables:  Size of @drawables.
- * @drawables:    Array of pointers to drawables.
+ * @drawables: (array length=n_drawables): Array of pointers to drawables.
  * @format_name:  The (short) name of the image_format (e.g. JPEG or GIF).
  * @capabilities: What can the image_format do?
  *
diff --git a/libgimp/gimpsaveprocedure.h b/libgimp/gimpsaveprocedure.h
index 73bb9afea7..c15c0b82cb 100644
--- a/libgimp/gimpsaveprocedure.h
+++ b/libgimp/gimpsaveprocedure.h
@@ -35,7 +35,7 @@ G_BEGIN_DECLS
  * @run_mode:    the #GimpRunMode.
  * @image:       the image to save.
  * @n_drawables: the number of drawables to save.
- * @drawables:   the drawables to save.
+ * @drawables: (array length=n_drawables):   the drawables to save.
  * @file:        the #GFile to save to.
  * @args:        the @procedure's remaining arguments.
  * @run_data: (closure): the run_data given in gimp_save_procedure_new().


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