[gtk+/wip/combobox-css-cleanups: 12/12] combobox: fix cell area allocation in menu mode for RTL



commit 26ff536069011c9054d7eb7235b4b4409022a910
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Jan 31 20:18:09 2012 -0500

    combobox: fix cell area allocation in menu mode for RTL
    
    We were missing a padding to subtract from the child widget here.

 gtk/gtkcombobox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index a69489c..d77a06b 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -2610,7 +2610,7 @@ gtk_combo_box_size_allocate (GtkWidget     *widget,
             {
               child.x += req.width;
               child.width = allocation->x + allocation->width
-                - border_width - child.x;
+                - border_width - child.x - button_padding.right;
             }
           else
             {



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