gtk+ r19747 - in trunk: . gtk



Author: aruiz
Date: Tue Mar 11 13:46:37 2008
New Revision: 19747
URL: http://svn.gnome.org/viewvc/gtk+?rev=19747&view=rev

Log:

2008-03-11  Alberto Ruiz  <aruiz gnome org>

	* gtk/gtkcombobox.c (gtk_combo_box_size_allocate):
	Take thickness into account in the size allocation of the child widgets in
	list mode.
	Fixes #521442



Modified:
   trunk/ChangeLog
   trunk/gtk/gtkcombobox.c

Modified: trunk/gtk/gtkcombobox.c
==============================================================================
--- trunk/gtk/gtkcombobox.c	(original)
+++ trunk/gtk/gtkcombobox.c	Tue Mar 11 13:46:37 2008
@@ -2320,8 +2320,14 @@
 	    }
         }
       
+      child.x += shadow_width;
+      child.y += shadow_height;
+      child.width -= shadow_width * 2;
+      child.height -= shadow_height * 2;
+      
       child.width = MAX (1, child.width);
       child.height = MAX (1, child.height);
+      
       gtk_widget_size_allocate (GTK_BIN (combo_box)->child, &child);
     }
 }



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