[libadwaita/wip/cdavis/expander-row-add-row] expander-row: Rename `add ()` to `add_row ()`




commit b6f27171b31795f1a9d3629160e4a0c146270573
Author: Christopher Davis <christopherdavis gnome org>
Date:   Thu Oct 7 17:00:21 2021 -0700

    expander-row: Rename `add ()` to  `add_row ()`
    
    Closes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/165

 doc/migrating-between-development-versions.md | 2 ++
 doc/migrating-libhandy-1-4-to-libadwaita.md   | 2 +-
 src/adw-expander-row.c                        | 8 ++++----
 src/adw-expander-row.h                        | 4 ++--
 tests/test-expander-row.c                     | 2 +-
 5 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/doc/migrating-between-development-versions.md b/doc/migrating-between-development-versions.md
index a7997c97..bc8ded14 100644
--- a/doc/migrating-between-development-versions.md
+++ b/doc/migrating-between-development-versions.md
@@ -224,3 +224,5 @@ The "use-underline" property and its accessors have been removed. Use
 
 The "use-underline" property and its accessors have been removed. Use
 [property@Adw.PreferencesRow:use-underline] and its accessors instead.
+
+The `adw_expander_row_add ()` function has been renamed to `adw_expander_row_add_row ()`.
diff --git a/doc/migrating-libhandy-1-4-to-libadwaita.md b/doc/migrating-libhandy-1-4-to-libadwaita.md
index 4cf8c21c..e6a0b119 100644
--- a/doc/migrating-libhandy-1-4-to-libadwaita.md
+++ b/doc/migrating-libhandy-1-4-to-libadwaita.md
@@ -117,7 +117,7 @@ Widget                        | `gtk_container_add()` replacement  | `gtk_contai
 ----------------------------- | ---------------------------------- | ------------------------------------
 [class@Adw.ActionRow]         | [method@Adw.ActionRow.add_suffix]  | [method@Adw.ActionRow.remove]
 [class@Adw.Carousel]          | [method@Adw.Carousel.append]       | [method@Adw.Carousel.remove]
-[class@Adw.ExpanderRow]       | [method Adw ExpanderRow add]       | [method@Adw.ExpanderRow.remove]
+[class@Adw.ExpanderRow]       | [method@Adw.ExpanderRow.add_row]   | [method@Adw.ExpanderRow.remove]
 [class@Adw.Leaflet]           | [method@Adw.Leaflet.append]        | [method@Adw.Leaflet.remove]
 [class@Adw.PreferencesGroup]  | [method Adw PreferencesGroup add]  | [method@Adw.PreferencesGroup.remove]
 [class@Adw.PreferencesPage]   | [method Adw PreferencesPage add]   | [method@Adw.PreferencesPage.remove]
diff --git a/src/adw-expander-row.c b/src/adw-expander-row.c
index db8c169a..d532af02 100644
--- a/src/adw-expander-row.c
+++ b/src/adw-expander-row.c
@@ -275,7 +275,7 @@ adw_expander_row_buildable_add_child (GtkBuildable *buildable,
   else if (type && strcmp (type, "prefix") == 0)
     adw_expander_row_add_prefix (self, GTK_WIDGET (child));
   else if (!type && GTK_IS_WIDGET (child))
-    adw_expander_row_add (self, GTK_WIDGET (child));
+    adw_expander_row_add_row (self, GTK_WIDGET (child));
   else
     parent_buildable_iface->add_child (buildable, builder, child, type);
 }
@@ -603,7 +603,7 @@ adw_expander_row_add_prefix (AdwExpanderRow *self,
 }
 
 /**
- * adw_expander_row_add:
+ * adw_expander_row_add_row:
  * @self: a `AdwExpanderRow`
  * @child: a widget
  *
@@ -614,8 +614,8 @@ adw_expander_row_add_prefix (AdwExpanderRow *self,
  * Since: 1.0
  */
 void
-adw_expander_row_add (AdwExpanderRow *self,
-                      GtkWidget      *child)
+adw_expander_row_add_row (AdwExpanderRow *self,
+                          GtkWidget      *child)
 {
   AdwExpanderRowPrivate *priv;
 
diff --git a/src/adw-expander-row.h b/src/adw-expander-row.h
index df9b9673..afd691e4 100644
--- a/src/adw-expander-row.h
+++ b/src/adw-expander-row.h
@@ -75,8 +75,8 @@ void adw_expander_row_add_prefix (AdwExpanderRow *self,
                                   GtkWidget      *widget);
 
 ADW_AVAILABLE_IN_ALL
-void adw_expander_row_add    (AdwExpanderRow *self,
-                              GtkWidget      *child);
+void adw_expander_row_add_row    (AdwExpanderRow *self,
+                                  GtkWidget      *child);
 ADW_AVAILABLE_IN_ALL
 void adw_expander_row_remove (AdwExpanderRow *self,
                               GtkWidget      *child);
diff --git a/tests/test-expander-row.c b/tests/test-expander-row.c
index 1485bff5..9d82e350 100644
--- a/tests/test-expander-row.c
+++ b/tests/test-expander-row.c
@@ -19,7 +19,7 @@ test_adw_expander_row_add_remove (void)
   child = gtk_list_box_row_new ();
   g_assert_nonnull (child);
 
-  adw_expander_row_add (row, child);
+  adw_expander_row_add_row (row, child);
   adw_expander_row_remove (row, child);
 }
 


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