notebook: properly subtract the initial_gap width from the tab space
Instead of modifying the allocation. https://bugzilla.gnome.org/show_bug.cgi?id=664494
This commit is contained in:
parent
7814718152
commit
f01162c727
@ -5436,9 +5436,6 @@ gtk_notebook_tab_space (GtkNotebook *notebook,
|
||||
|
||||
gtk_widget_get_allocation (widget, &allocation);
|
||||
|
||||
allocation.x += initial_gap;
|
||||
allocation.width -= 2 * initial_gap;
|
||||
|
||||
switch (tab_pos)
|
||||
{
|
||||
case GTK_POS_TOP:
|
||||
@ -5504,6 +5501,9 @@ gtk_notebook_tab_space (GtkNotebook *notebook,
|
||||
break;
|
||||
}
|
||||
|
||||
*min += initial_gap;
|
||||
*max -= (2 * initial_gap);
|
||||
|
||||
if (!priv->scrollable)
|
||||
*show_arrows = FALSE;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user