[gtk+/quartz-integration: 59/108] notebook: Use the right padding for inactive tabs



commit 3c940cc7935efe6e41446eee21a289221126c3e2
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]