[gtk+] Fix size allocation for list mode combo box



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]