From a51f70e33a3761416aee74908027104042725dd7 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 18 Aug 2011 18:08:24 +0200 Subject: [PATCH] Repack the alignment of the tab close button Fixes: https://bugs.launchpad.net/midori/+bug/827089 --- midori/midori-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 3e77b380..d9fb43d2 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -4513,13 +4513,16 @@ midori_view_tab_label_parent_set (GtkWidget* tab_label, if (old_angle != angle) { + GtkWidget* align; + if (angle == 0.0) box = gtk_hbox_new (FALSE, 1); else box = gtk_vbox_new (FALSE, 1); gtk_box_repack (GTK_BOX (box), view->tab_icon); gtk_box_repack (GTK_BOX (box), view->tab_title); - gtk_box_repack (GTK_BOX (box), view->tab_close); + align = gtk_widget_get_parent (view->tab_close); + gtk_box_repack (GTK_BOX (box), align); gtk_container_remove (GTK_CONTAINER (tab_label), gtk_bin_get_child (GTK_BIN (tab_label)));