Repack the alignment of the tab close button

Fixes: https://bugs.launchpad.net/midori/+bug/827089
This commit is contained in:
Christian Dywan 2011-08-18 18:08:24 +02:00
parent 59a6438d52
commit a51f70e33a

View file

@ -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)));