summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2007-01-05 17:29:49 +0000
committerCarlos Garnacho <carlosg@src.gnome.org>2007-01-05 17:29:49 +0000
commit34039c7008ddae46d5cd59ff4dd3a5b57f026bfe (patch)
tree9889a86e2971da8bd93793ff1fa8f956d52e6fa4 /gtk/gtknotebook.c
parentf332e19c4f85c9ca29a87b7dad0d3ce57dfcd15a (diff)
downloadgtk+-34039c7008ddae46d5cd59ff4dd3a5b57f026bfe.tar.gz
take into account both scroll arrows when calculating size request in
2007-01-05 Carlos Garnacho <carlosg@gnome.org> * gtk/gtknotebook.c (gtk_notebook_size_request): take into account both scroll arrows when calculating size request in GTK_POS_LEFT or GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch) svn path=/trunk/; revision=17080
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index c5f0e41859..c8edb873df 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -1865,7 +1865,7 @@ gtk_notebook_size_request (GtkWidget *widget,
if (notebook->scrollable && vis_pages > 1 &&
widget->requisition.height < tab_height)
- tab_height = tab_max + scroll_arrow_vlength + arrow_spacing;
+ tab_height = tab_max + (2 * scroll_arrow_vlength + arrow_spacing);
widget->requisition.width += tab_width;