[libadwaita/wip/exalm/fixes: 7/8] header-bar: Remove a useless function
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/fixes: 7/8] header-bar: Remove a useless function
- Date: Thu, 12 Aug 2021 17:02:02 +0000 (UTC)
commit fceb8fda924f38929d842a56f1b15f769055dd45
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Aug 9 20:02:53 2021 +0500
header-bar: Remove a useless function
src/adw-header-bar.c | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/src/adw-header-bar.c b/src/adw-header-bar.c
index 16c8808b..c42a6d35 100644
--- a/src/adw-header-bar.c
+++ b/src/adw-header-bar.c
@@ -354,19 +354,6 @@ adw_header_bar_set_property (GObject *object,
}
}
-static void
-adw_header_bar_pack (AdwHeaderBar *self,
- GtkWidget *widget,
- GtkPackType pack_type)
-{
- if (pack_type == GTK_PACK_START)
- gtk_box_append (GTK_BOX (self->start_box), widget);
- else if (pack_type == GTK_PACK_END) {
- gtk_box_append (GTK_BOX (self->end_box), widget);
- gtk_box_reorder_child_after (GTK_BOX (self->end_box), widget, NULL);
- }
-}
-
static GtkSizeRequestMode
adw_header_bar_get_request_mode (GtkWidget *widget)
{
@@ -631,7 +618,7 @@ void
adw_header_bar_pack_start (AdwHeaderBar *self,
GtkWidget *child)
{
- adw_header_bar_pack (self, child, GTK_PACK_START);
+ gtk_box_append (GTK_BOX (self->start_box), child);
}
/**
@@ -647,7 +634,7 @@ void
adw_header_bar_pack_end (AdwHeaderBar *self,
GtkWidget *child)
{
- adw_header_bar_pack (self, child, GTK_PACK_END);
+ gtk_box_prepend (GTK_BOX (self->end_box), child);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]