[gtk+/quartz-integration: 62/108] notebook: Respect left border when allocating tab widgets



commit 48e6e1c28d4d28d525d11099039aa23002bff194
Author: Benjamin Otte <otte redhat com>
Date:   Fri Apr 29 09:38:56 2011 +0200

    notebook: Respect left border when allocating tab widgets
    
    This mirrors the code for the other tab locations.

 gtk/gtknotebook.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 2d4530c..b24a828 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6202,8 +6202,9 @@ gtk_notebook_page_allocate (GtkNotebook     *notebook,
       if (tab_pos == GTK_POS_LEFT)
         child_allocation.x += tab_padding.left + focus_width + focus_padding;
 
-      child_allocation.width = MAX (1, (page->allocation.width - tab_padding.right -
-                                        2 * (priv->tab_hborder + focus_width + focus_padding)));
+      child_allocation.width = MAX (1, (page->allocation.width -
+                                         tab_padding.left - tab_padding.right -
+                                         2 * (priv->tab_hborder + focus_width + focus_padding)));
       break;
     }
 



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