[gnome-builder] libide/tweaks: rename get_strv to dup_strv



commit ca9ffae80286c378ed18ed8e8ce1e555bf5bd373
Author: Christian Hergert <chergert redhat com>
Date:   Sat Aug 27 17:23:20 2022 -0700

    libide/tweaks: rename get_strv to dup_strv

 src/libide/tweaks/ide-tweaks-binding.c | 4 ++--
 src/libide/tweaks/ide-tweaks-binding.h | 2 +-
 src/libide/tweaks/ide-tweaks-radio.c   | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libide/tweaks/ide-tweaks-binding.c b/src/libide/tweaks/ide-tweaks-binding.c
index e523df180..4d7bc481b 100644
--- a/src/libide/tweaks/ide-tweaks-binding.c
+++ b/src/libide/tweaks/ide-tweaks-binding.c
@@ -473,7 +473,7 @@ ide_tweaks_binding_create_adjustment (IdeTweaksBinding *self)
 }
 
 /**
- * ide_tweaks_binding_get_strv:
+ * ide_tweaks_binding_dup_strv:
  * @self: a #IdeTweaksBinding
  *
  * Gets the value as a #GStrv.
@@ -482,7 +482,7 @@ ide_tweaks_binding_create_adjustment (IdeTweaksBinding *self)
  *   newly allocated string array, or %NULL
  */
 char **
-ide_tweaks_binding_get_strv (IdeTweaksBinding *self)
+ide_tweaks_binding_dup_strv (IdeTweaksBinding *self)
 {
   g_auto(GValue) value = G_VALUE_INIT;
 
diff --git a/src/libide/tweaks/ide-tweaks-binding.h b/src/libide/tweaks/ide-tweaks-binding.h
index befbd7ab3..e1afc5e3a 100644
--- a/src/libide/tweaks/ide-tweaks-binding.h
+++ b/src/libide/tweaks/ide-tweaks-binding.h
@@ -67,7 +67,7 @@ IDE_AVAILABLE_IN_ALL
 void           ide_tweaks_binding_set_string          (IdeTweaksBinding          *self,
                                                        const char                *string);
 IDE_AVAILABLE_IN_ALL
-char         **ide_tweaks_binding_get_strv            (IdeTweaksBinding          *self);
+char         **ide_tweaks_binding_dup_strv            (IdeTweaksBinding          *self);
 IDE_AVAILABLE_IN_ALL
 void           ide_tweaks_binding_set_strv            (IdeTweaksBinding          *self,
                                                        const char * const        *strv);
diff --git a/src/libide/tweaks/ide-tweaks-radio.c b/src/libide/tweaks/ide-tweaks-radio.c
index 5e4afbe3d..3efde4909 100644
--- a/src/libide/tweaks/ide-tweaks-radio.c
+++ b/src/libide/tweaks/ide-tweaks-radio.c
@@ -105,7 +105,7 @@ ide_tweaks_radio_notify_active_cb (GtkCheckButton   *button,
       if (type == G_TYPE_STRV && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))
         {
           const char *str = g_variant_get_string (value, NULL);
-          g_auto(GStrv) old_strv = ide_tweaks_binding_get_strv (binding);
+          g_auto(GStrv) old_strv = ide_tweaks_binding_dup_strv (binding);
           g_auto(GStrv) new_strv = add_to_set ((const char * const *)old_strv, str);
 
           if (!old_strv ||
@@ -123,7 +123,7 @@ ide_tweaks_radio_notify_active_cb (GtkCheckButton   *button,
       if (type == G_TYPE_STRV && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))
         {
           const char *str = g_variant_get_string (value, NULL);
-          g_auto(GStrv) old_strv = ide_tweaks_binding_get_strv (binding);
+          g_auto(GStrv) old_strv = ide_tweaks_binding_dup_strv (binding);
           g_auto(GStrv) new_strv = remove_from_set ((const char * const *)old_strv, str);
 
           if (old_strv &&
@@ -165,7 +165,7 @@ on_binding_changed_cb (GtkCheckButton   *button,
 
   if (type == G_TYPE_STRV && g_variant_is_of_type (variant, G_VARIANT_TYPE_STRING))
     {
-      g_auto(GStrv) strv = ide_tweaks_binding_get_strv (binding);
+      g_auto(GStrv) strv = ide_tweaks_binding_dup_strv (binding);
 
       if (strv != NULL)
         active = g_strv_contains ((const char * const *)strv,


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