[gtk+/quartz-integration: 63/108] notebook: Match horizontal and vertical code paths



commit 85cffca66a8fbec556690cd46cd6ec681f24a36c
Author: Benjamin Otte <otte redhat com>
Date:   Fri Apr 29 11:04:01 2011 +0200

    notebook: Match horizontal and vertical code paths
    
    I have no idea what this code does, but it looks better now. :o

 gtk/gtknotebook.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index b24a828..b6ebff4 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6175,7 +6175,7 @@ gtk_notebook_page_allocate (GtkNotebook     *notebook,
            * coordinate of the allocation too, to position it after
            * the end of the overlap.
            */
-          if (page != priv->cur_page && tab_overlap > tab_curvature)
+          if (page != priv->cur_page && tab_overlap > tab_curvature + MIN (tab_padding.top, tab_padding.bottom))
             {
               if (gtk_notebook_page_num (notebook, page->child) >
                   gtk_notebook_page_num (notebook, priv->cur_page->child))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]