]> Pileus Git - ~andy/gtk/commitdiff
combobox: fix cell area allocation in menu mode for RTL
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 1 Feb 2012 01:18:09 +0000 (20:18 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 1 Feb 2012 01:30:43 +0000 (20:30 -0500)
We were missing a padding to subtract from the child widget here.

gtk/gtkcombobox.c

index a69489c193ff3167754b258ec256b5ea76a47718..d77a06bb177fd36001a6fa187a7936b6cc90ee3a 100644 (file)
@@ -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
             {