summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-09-21 09:41:53 +0200
committerTimm Bäder <mail@baedert.org>2019-09-21 09:41:53 +0200
commit7de076481e3d46097c39b17d86207c5957ada581 (patch)
tree595fd2f5b8e5559117dc6a24746dc4b3a2a5ccc1
parent87e7fa9917d89f1ad74a744995ea6c0e81281659 (diff)
downloadgtk+-7de076481e3d46097c39b17d86207c5957ada581.tar.gz
headerbar: Fix end-packed child order
We pack from right to left there.
-rw-r--r--gtk/gtkheaderbar.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 90c6871fd4..7141a2d300 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -944,9 +944,14 @@ gtk_header_bar_pack (GtkHeaderBar *bar,
g_return_if_fail (gtk_widget_get_parent (widget) == NULL);
if (pack_type == GTK_PACK_START)
- gtk_container_add (GTK_CONTAINER (priv->start_box), widget);
+ {
+ gtk_container_add (GTK_CONTAINER (priv->start_box), widget);
+ }
else if (pack_type == GTK_PACK_END)
- gtk_container_add (GTK_CONTAINER (priv->end_box), widget);
+ {
+ gtk_container_add (GTK_CONTAINER (priv->end_box), widget);
+ gtk_box_reorder_child_after (GTK_BOX (priv->end_box), widget, NULL);
+ }
g_signal_connect (widget, "notify::visible", G_CALLBACK (notify_child_cb), bar);
_gtk_header_bar_update_separator_visibility (bar);