[libhandy] header-group: Rename add_header_bar() into add_gtk_header_bar()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] header-group: Rename add_header_bar() into add_gtk_header_bar()
- Date: Fri, 10 Jul 2020 18:43:11 +0000 (UTC)
commit 99ac2ab86d7bef964a64bea216c88860fa284cd8
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jul 9 11:15:26 2020 +0200
header-group: Rename add_header_bar() into add_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 | 9 +++++----
src/hdy-header-group.h | 4 ++--
tests/test-header-group.c | 4 ++--
5 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/debian/libhandy-1-0.symbols b/debian/libhandy-1-0.symbols
index 3f03ba8d..7e9c17e6 100644
--- a/debian/libhandy-1-0.symbols
+++ b/debian/libhandy-1-0.symbols
@@ -164,7 +164,7 @@ libhandy-1.so.0 libhandy-1-0 #MINVER#
hdy_header_bar_set_subtitle@LIBHANDY_1_0 0.0.10
hdy_header_bar_set_title@LIBHANDY_1_0 0.0.10
hdy_header_bar_set_transition_duration@LIBHANDY_1_0 0.0.10
- hdy_header_group_add_header_bar@LIBHANDY_1_0 0.0.3
+ hdy_header_group_add_gtk_header_bar@LIBHANDY_1_0 0.83.0
hdy_header_group_get_children@LIBHANDY_1_0 0.83.0
hdy_header_group_get_decorate_all@LIBHANDY_1_0 0.83.0
hdy_header_group_get_type@LIBHANDY_1_0 0.0.3
diff --git a/glade/glade-hdy-header-group.c b/glade/glade-hdy-header-group.c
index 95f7fb45..e576ce80 100644
--- a/glade/glade-hdy-header-group.c
+++ b/glade/glade-hdy-header-group.c
@@ -152,8 +152,8 @@ glade_hdy_header_group_set_property (GladeWidgetAdaptor *adaptor,
/* add new widgets */
if ((widgets = g_value_get_boxed (value)) != NULL) {
for (list = widgets; list; list = list->next)
- hdy_header_group_add_header_bar (HDY_HEADER_GROUP (object),
- GTK_HEADER_BAR (list->data));
+ hdy_header_group_add_gtk_header_bar (HDY_HEADER_GROUP (object),
+ GTK_HEADER_BAR (list->data));
}
} else {
GWA_GET_CLASS (G_TYPE_OBJECT)->set_property (adaptor, object,
diff --git a/src/hdy-header-group.c b/src/hdy-header-group.c
index fec90289..fb3a8571 100644
--- a/src/hdy-header-group.c
+++ b/src/hdy-header-group.c
@@ -136,7 +136,7 @@ hdy_header_group_new (void)
}
/**
- * hdy_header_group_add_header_bar:
+ * hdy_header_group_add_gtk_header_bar:
* @self: a #HdyHeaderGroup
* @header_bar: the #GtkHeaderBar to add
*
@@ -151,8 +151,8 @@ hdy_header_group_new (void)
* be removed from the header group.
*/
void
-hdy_header_group_add_header_bar (HdyHeaderGroup *self,
- GtkHeaderBar *header_bar)
+hdy_header_group_add_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));
@@ -489,7 +489,8 @@ hdy_header_group_buildable_custom_finished (GtkBuildable *buildable,
object = gtk_builder_get_object (builder, item_data->name);
if (!object)
continue;
- hdy_header_group_add_header_bar (HDY_HEADER_GROUP (data->object), GTK_HEADER_BAR (object));
+ hdy_header_group_add_gtk_header_bar (HDY_HEADER_GROUP (data->object),
+ GTK_HEADER_BAR (object));
}
g_slist_free_full (data->items, item_data_free);
g_slice_free (GSListSubParserData, data);
diff --git a/src/hdy-header-group.h b/src/hdy-header-group.h
index ad937ce5..9dd71bb6 100644
--- a/src/hdy-header-group.h
+++ b/src/hdy-header-group.h
@@ -20,8 +20,8 @@ G_DECLARE_FINAL_TYPE (HdyHeaderGroup, hdy_header_group, HDY, HEADER_GROUP, GObje
HdyHeaderGroup *hdy_header_group_new (void);
-void hdy_header_group_add_header_bar (HdyHeaderGroup *self,
- GtkHeaderBar *header_bar);
+void hdy_header_group_add_gtk_header_bar (HdyHeaderGroup *self,
+ GtkHeaderBar *header_bar);
GSList *hdy_header_group_get_children (HdyHeaderGroup *self);
diff --git a/tests/test-header-group.c b/tests/test-header-group.c
index 6e17f8e9..e386161b 100644
--- a/tests/test-header-group.c
+++ b/tests/test-header-group.c
@@ -45,10 +45,10 @@ test_hdy_header_group_add_remove (void)
g_assert_cmpint (g_slist_length (hdy_header_group_get_children (hg)), ==, 0);
- hdy_header_group_add_header_bar (hg, GTK_HEADER_BAR (bar1));
+ hdy_header_group_add_gtk_header_bar (hg, GTK_HEADER_BAR (bar1));
g_assert_cmpint (g_slist_length (hdy_header_group_get_children (hg)), ==, 1);
- hdy_header_group_add_header_bar (hg, GTK_HEADER_BAR (bar2));
+ 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]