[gimp] pdb, libgimp: annotate gimp_enums_get_type_names()



commit 6d24eb9bb20913b90408cdaddef88409d183ba45
Author: Michael Natterer <mitch gimp org>
Date:   Fri Aug 9 18:40:59 2019 +0200

    pdb, libgimp: annotate gimp_enums_get_type_names()
    
    and manually add gimpenums.c to the list of introspectable files.

 libgimp/Makefile.am      | 1 +
 libgimp/gimpenums.c.tail | 2 +-
 pdb/enumcode.pl          | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgimp/Makefile.am b/libgimp/Makefile.am
index a6084ca20a..c906b13374 100644
--- a/libgimp/Makefile.am
+++ b/libgimp/Makefile.am
@@ -363,6 +363,7 @@ Gimp_@GIMP_API_MAJOR_VERSION@_@GIMP_API_MINOR_VERSION@_gir_LIBS = \
 
 Gimp_@GIMP_API_MAJOR_VERSION@_@GIMP_API_MINOR_VERSION@_gir_FILES =     \
        $(libgimp_introspectable)                                       \
+       gimpenums.c                                                     \
        $(libgimpui_introspectable)                                     \
        $(libgimpbase_introspectable)                                   \
        $(libgimpcolor_introspectable)                                  \
diff --git a/libgimp/gimpenums.c.tail b/libgimp/gimpenums.c.tail
index 722196836a..6811107acd 100644
--- a/libgimp/gimpenums.c.tail
+++ b/libgimp/gimpenums.c.tail
@@ -192,7 +192,7 @@ gimp_enums_init (void)
  * This function gives access to the list of enums registered by libgimp.
  * The returned array is static and must not be modified.
  *
- * Returns: an array with type names
+ * Returns: (transfer none): an array with type names
  *
  * Since: 2.2
  **/
diff --git a/pdb/enumcode.pl b/pdb/enumcode.pl
index 09d00dbac5..9516af008d 100755
--- a/pdb/enumcode.pl
+++ b/pdb/enumcode.pl
@@ -241,7 +241,7 @@ gimp_enums_init (void)
  * This function gives access to the list of enums registered by libgimp.
  * The returned array is static and must not be modified.
  *
- * Returns: an array with type names
+ * Returns: (transfer none): an array with type names
  *
  * Since: 2.2
  **/


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