[gtk+] notebook: Use the right padding for inactive tabs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] notebook: Use the right padding for inactive tabs
- Date: Fri, 29 Apr 2011 09:05:47 +0000 (UTC)
commit 02b14ffad917e4872e30703bcbb47c6bbaee0870
Author: Benjamin Otte <otte redhat com>
Date: Fri Apr 29 08:48:36 2011 +0200
notebook: Use the right padding for inactive tabs
gtk/gtknotebook.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 6ab853a..2abea22 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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]