Repack the alignment of the tab close button
Fixes: https://bugs.launchpad.net/midori/+bug/827089
This commit is contained in:
parent
59a6438d52
commit
a51f70e33a
1 changed files with 4 additions and 1 deletions
|
@ -4513,13 +4513,16 @@ midori_view_tab_label_parent_set (GtkWidget* tab_label,
|
||||||
|
|
||||||
if (old_angle != angle)
|
if (old_angle != angle)
|
||||||
{
|
{
|
||||||
|
GtkWidget* align;
|
||||||
|
|
||||||
if (angle == 0.0)
|
if (angle == 0.0)
|
||||||
box = gtk_hbox_new (FALSE, 1);
|
box = gtk_hbox_new (FALSE, 1);
|
||||||
else
|
else
|
||||||
box = gtk_vbox_new (FALSE, 1);
|
box = gtk_vbox_new (FALSE, 1);
|
||||||
gtk_box_repack (GTK_BOX (box), view->tab_icon);
|
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_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_container_remove (GTK_CONTAINER (tab_label),
|
||||||
gtk_bin_get_child (GTK_BIN (tab_label)));
|
gtk_bin_get_child (GTK_BIN (tab_label)));
|
||||||
|
|
Loading…
Reference in a new issue