[libhandy] header-group: Rename remove_header_bar() into remove_gtk_header_bar()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] header-group: Rename remove_header_bar() into remove_gtk_header_bar()
- Date: Fri, 10 Jul 2020 18:43:16 +0000 (UTC)
commit c5f597d29699dd5e21aa0dfac6c69b7f15f20a76
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jul 9 11:18:49 2020 +0200
header-group: Rename remove_header_bar() into remove_gtk_header_bar()
This will help adding HdyHeaderBar as a child type.
debian/libhandy-1-0.symbols | 2 +-
glade/glade-hdy-header-group.c | 4 ++--
src/hdy-header-group.c | 6 +++---
src/hdy-header-group.h | 2 +-
tests/test-header-group.c | 4 ++--
5 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/debian/libhandy-1-0.symbols b/debian/libhandy-1-0.symbols
index 7e9c17e6..3ee4d2c3 100644
--- a/debian/libhandy-1-0.symbols
+++ b/debian/libhandy-1-0.symbols
@@ -169,7 +169,7 @@ libhandy-1.so.0 libhandy-1-0 #MINVER#
hdy_header_group_get_decorate_all@LIBHANDY_1_0 0.83.0
hdy_header_group_get_type@LIBHANDY_1_0 0.0.3
hdy_header_group_new@LIBHANDY_1_0 0.0.3
- hdy_header_group_remove_header_bar@LIBHANDY_1_0 0.0.4~
+ hdy_header_group_remove_gtk_header_bar@LIBHANDY_1_0 0.83.0
hdy_header_group_set_decorate_all@LIBHANDY_1_0 0.83.0
hdy_init@LIBHANDY_1_0 0.82.0
hdy_init_public_types@LIBHANDY_1_0 0.0.5
diff --git a/glade/glade-hdy-header-group.c b/glade/glade-hdy-header-group.c
index e576ce80..b4408ea6 100644
--- a/glade/glade-hdy-header-group.c
+++ b/glade/glade-hdy-header-group.c
@@ -144,8 +144,8 @@ glade_hdy_header_group_set_property (GladeWidgetAdaptor *adaptor,
/* copy since we are modifying an internal list */
sg_widgets = g_slist_copy (sg_widgets);
for (slist = sg_widgets; slist; slist = slist->next)
- hdy_header_group_remove_header_bar (HDY_HEADER_GROUP (object),
- GTK_HEADER_BAR (slist->data));
+ hdy_header_group_remove_gtk_header_bar (HDY_HEADER_GROUP (object),
+ GTK_HEADER_BAR (slist->data));
g_slist_free (sg_widgets);
}
diff --git a/src/hdy-header-group.c b/src/hdy-header-group.c
index fb3a8571..52d65ea8 100644
--- a/src/hdy-header-group.c
+++ b/src/hdy-header-group.c
@@ -170,15 +170,15 @@ hdy_header_group_add_gtk_header_bar (HdyHeaderGroup *self,
/**
- * hdy_header_group_remove_header_bar:
+ * hdy_header_group_remove_gtk_header_bar:
* @self: a #HdyHeaderGroup
* @header_bar: the #GtkHeaderBar to remove
*
* Removes a widget from a #HdyHeaderGroup
**/
void
-hdy_header_group_remove_header_bar (HdyHeaderGroup *self,
- GtkHeaderBar *header_bar)
+hdy_header_group_remove_gtk_header_bar (HdyHeaderGroup *self,
+ GtkHeaderBar *header_bar)
{
g_return_if_fail (HDY_IS_HEADER_GROUP (self));
g_return_if_fail (GTK_IS_HEADER_BAR (header_bar));
diff --git a/src/hdy-header-group.h b/src/hdy-header-group.h
index 9dd71bb6..af7ae412 100644
--- a/src/hdy-header-group.h
+++ b/src/hdy-header-group.h
@@ -25,7 +25,7 @@ void hdy_header_group_add_gtk_header_bar (HdyHeaderGroup *self,
GSList *hdy_header_group_get_children (HdyHeaderGroup *self);
-void hdy_header_group_remove_header_bar (HdyHeaderGroup *self,
+void hdy_header_group_remove_gtk_header_bar (HdyHeaderGroup *self,
GtkHeaderBar *header_bar);
gboolean hdy_header_group_get_decorate_all (HdyHeaderGroup *self);
diff --git a/tests/test-header-group.c b/tests/test-header-group.c
index e386161b..5f5913b2 100644
--- a/tests/test-header-group.c
+++ b/tests/test-header-group.c
@@ -51,10 +51,10 @@ test_hdy_header_group_add_remove (void)
hdy_header_group_add_gtk_header_bar (hg, GTK_HEADER_BAR (bar2));
g_assert_cmpint (g_slist_length (hdy_header_group_get_children (hg)), ==, 2);
- hdy_header_group_remove_header_bar (hg, GTK_HEADER_BAR (bar2));
+ hdy_header_group_remove_gtk_header_bar (hg, GTK_HEADER_BAR (bar2));
g_assert_cmpint (g_slist_length (hdy_header_group_get_children (hg)), ==, 1);
- hdy_header_group_remove_header_bar (hg, GTK_HEADER_BAR (bar1));
+ hdy_header_group_remove_gtk_header_bar (hg, GTK_HEADER_BAR (bar1));
g_assert_cmpint (g_slist_length (hdy_header_group_get_children (hg)), ==, 0);
g_object_unref (hg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]