[gtk+] notebook: make sure the allocation keeps track of the tab curvature



commit 27a0cef60ca53232197b8bfa75f4dbc3a390fff7
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Mar 5 03:05:54 2011 -0500

    notebook: make sure the allocation keeps track of the tab curvature
    
    This was a genuine typo, because "padding" was calculated but unused in
    this branch of the code.

 gtk/gtknotebook.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index edcd684..0baa3ed 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6051,10 +6051,10 @@ gtk_notebook_page_allocate (GtkNotebook     *notebook,
       padding = tab_curvature + focus_width + priv->tab_hborder;
       if (page->fill)
         {
-          child_allocation.x = tab_padding.left + focus_width + priv->tab_hborder;
+          child_allocation.x = tab_padding.left + padding;
           child_allocation.width = MAX (1, (page->allocation.width -
                                             tab_padding.left - tab_padding.right -
-                                            2 * (focus_width + priv->tab_hborder)));
+                                            2 * (padding)));
           child_allocation.x += page->allocation.x;
         }
       else



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