Commit 1e1f49e0 authored by Alberto Ruiz's avatar Alberto Ruiz Committed by Alberto Ruiz

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
parent 62f08486
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.
......
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment