summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-04-29 09:38:56 +0200
committerBenjamin Otte <otte@redhat.com>2011-04-29 11:05:36 +0200
commit8e1714d59b685f9d1e05b3104d7531cf5551729c (patch)
tree0bef03c3ce2ded4ffe1da59b05efa57b09a72598 /gtk/gtknotebook.c
parent409143637f80209f681bc0926f435be29a51de14 (diff)
downloadgtk+-8e1714d59b685f9d1e05b3104d7531cf5551729c.tar.gz
notebook: Respect left border when allocating tab widgets
This mirrors the code for the other tab locations.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 2d4530c5c2..b24a828b7d 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6202,8 +6202,9 @@ gtk_notebook_page_allocate (GtkNotebook *notebook,
if (tab_pos == GTK_POS_LEFT)
child_allocation.x += tab_padding.left + focus_width + focus_padding;
- child_allocation.width = MAX (1, (page->allocation.width - tab_padding.right -
- 2 * (priv->tab_hborder + focus_width + focus_padding)));
+ child_allocation.width = MAX (1, (page->allocation.width -
+ tab_padding.left - tab_padding.right -
+ 2 * (priv->tab_hborder + focus_width + focus_padding)));
break;
}