From 02b14ffad917e4872e30703bcbb47c6bbaee0870 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 29 Apr 2011 08:48:36 +0200 Subject: [PATCH] notebook: Use the right padding for inactive tabs --- gtk/gtknotebook.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 6ab853ac48..2abea22e4c 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -5910,16 +5910,18 @@ gtk_notebook_calculate_tabs_allocation (GtkNotebook *notebook, { case GTK_POS_TOP: page->allocation.y += padding.top; - /* fall through */ - case GTK_POS_BOTTOM: page->allocation.height = MAX (1, page->allocation.height - padding.top); break; + case GTK_POS_BOTTOM: + page->allocation.height = MAX (1, page->allocation.height - padding.bottom); + break; case GTK_POS_LEFT: page->allocation.x += padding.left; - /* fall through */ - case GTK_POS_RIGHT: page->allocation.width = MAX (1, page->allocation.width - padding.left); break; + case GTK_POS_RIGHT: + page->allocation.width = MAX (1, page->allocation.width - padding.right); + break; } }