[gtk+] Fix size allocation for list mode combo box
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix size allocation for list mode combo box
- Date: Fri, 17 Dec 2010 15:54:42 +0000 (UTC)
commit faf35d708bc90017e4a85fd9475619205510c3d2
Author: Kristian Rietveld <kris gtk org>
Date: Fri Dec 17 16:51:42 2010 +0100
Fix size allocation for list mode combo box
gtk/gtkcombobox.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index dc909fe..fcfe854 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -2681,8 +2681,8 @@ gtk_combo_box_size_allocate (GtkWidget *widget,
{
child.x += border.left + border_width;
child.y += border.top + border_width;
- child.width -= (2 * border_width) - (border.left + border.right);
- child.height -= (2 * border_width) - (border.top + border.bottom);
+ child.width -= (2 * border_width) + border.left + border.right;
+ child.height -= (2 * border_width) + border.top + border.bottom;
}
if (gtk_widget_get_visible (priv->popup_window))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]