[gimp] libgimpconfig: fix a few more warnings.



commit 74a0da9aa0e43a678c68428c30a47b7809423f0e
Author: Jehan <jehan girinstud io>
Date:   Sun Jul 28 09:41:27 2019 +0200

    libgimpconfig: fix a few more warnings.
    
    Fixes these sorts of warnings:
    > return value: Missing (element-type) annotation
    > return value: Missing (transfer) annotation

 libgimpconfig/gimpconfig-path.c  | 7 ++++---
 libgimpconfig/gimpconfig-utils.c | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libgimpconfig/gimpconfig-path.c b/libgimpconfig/gimpconfig-path.c
index e3a519f233..f7f7e32125 100644
--- a/libgimpconfig/gimpconfig-path.c
+++ b/libgimpconfig/gimpconfig-path.c
@@ -139,7 +139,7 @@ gimp_param_config_path_class_init (GParamSpecClass *class)
  * or list of file or dir names.
  * See g_param_spec_internal() for more information.
  *
- * Returns: a newly allocated #GParamSpec instance
+ * Returns: (transfer full): a newly allocated #GParamSpec instance
  *
  * Since: 2.4
  **/
@@ -350,7 +350,8 @@ gimp_config_path_expand (const gchar  *path,
  * gimp_path_parse(), then turns the filenames returned by
  * gimp_path_parse() into GFile using g_file_new_for_path().
  *
- * Return value: a #GList of newly allocated #GFile objects.
+ * Return value: (element-type GFile) (transfer full):
+                 a #GList of newly allocated #GFile objects.
  *
  * Since: 2.10
  **/
@@ -441,7 +442,7 @@ gimp_config_path_unexpand (const gchar  *path,
  *
  * To reverse the expansion, use gimp_file_get_config_path().
  *
- * Return value: a newly allocated #GFile, or %NULL if the expansion failed.
+ * Return value: (transfer full): a newly allocated #GFile, or %NULL if the expansion failed.
  *
  * Since: 2.10
  **/
diff --git a/libgimpconfig/gimpconfig-utils.c b/libgimpconfig/gimpconfig-utils.c
index 7cef219509..4ccd677f5a 100644
--- a/libgimpconfig/gimpconfig-utils.c
+++ b/libgimpconfig/gimpconfig-utils.c
@@ -158,7 +158,7 @@ gimp_config_diff_other (GObject     *a,
  * exist in both object classes and are of the same value_type are
  * compared.
  *
- * Return value: a GList of differing GParamSpecs.
+ * Return value: (transfer container) (element-type GParamSpec): a GList of differing GParamSpecs.
  *
  * Since: 2.4
  **/


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