From 34039c7008ddae46d5cd59ff4dd3a5b57f026bfe Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 5 Jan 2007 17:29:49 +0000 Subject: [PATCH] take into account both scroll arrows when calculating size request in 2007-01-05 Carlos Garnacho * 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 --- ChangeLog | 6 ++++++ gtk/gtknotebook.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 28d363d9eb..7dfb7327b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-05 Carlos Garnacho + + * 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) + 2007-01-05 Michael Natterer * gtk/gtkwindow.c (gtk_window_key_release_event): chain up to 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;