[Xfce4-commits] <midori:master> Repack the alignment of the tab close button
Christian Dywan
noreply at xfce.org
Thu Aug 18 18:10:01 CEST 2011
Updating branch refs/heads/master
to a51f70e33a3761416aee74908027104042725dd7 (commit)
from 59a6438d5257b010e2a484762fdb3996aee0c4eb (commit)
commit a51f70e33a3761416aee74908027104042725dd7
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Aug 18 18:08:24 2011 +0200
Repack the alignment of the tab close button
Fixes: https://bugs.launchpad.net/midori/+bug/827089
midori/midori-view.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 3e77b38..d9fb43d 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)));
More information about the Xfce4-commits
mailing list