]> Pileus Git - ~andy/gtk/commitdiff
notebook: Match horizontal and vertical code paths
authorBenjamin Otte <otte@redhat.com>
Fri, 29 Apr 2011 09:04:01 +0000 (11:04 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 29 Apr 2011 09:05:37 +0000 (11:05 +0200)
I have no idea what this code does, but it looks better now. :o

gtk/gtknotebook.c

index b24a828b7df0744406062736dd9cb53c4998f3e9..b6ebff4f28701b1df970d297e5d1f0b3e3dab261 100644 (file)
@@ -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))