[gtk+/wip/combobox-css-cleanups: 12/12] combobox: fix cell area allocation in menu mode for RTL
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/combobox-css-cleanups: 12/12] combobox: fix cell area allocation in menu mode for RTL
- Date: Wed, 1 Feb 2012 01:36:02 +0000 (UTC)
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]