summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-11-21 12:08:11 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2011-11-21 14:19:36 -0500
commitf01162c7273b9354c90c080a422cb122ddeaf2ce (patch)
treeca75fe6def86961ed02288eb1a5a75245e4e2914 /gtk/gtknotebook.c
parent781471815200701ebc5e1f60cd1baa5460def784 (diff)
downloadgtk+-f01162c7273b9354c90c080a422cb122ddeaf2ce.tar.gz
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
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 1c0fbf84d0..59906f8176 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -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