Take thickness into account in the size allocation of the child widgets in

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


svn path=/trunk/; revision=19747
This commit is contained in:
Alberto Ruiz 2008-03-11 13:46:37 +00:00 committed by Alberto Ruiz
parent 62f084869d
commit 1e1f49e09a
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
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
2008-03-11 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c: Implement gdk_window_reparent.

View File

@ -2320,8 +2320,14 @@ gtk_combo_box_size_allocate (GtkWidget *widget,
}
}
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);
}
}