Fix #410815, reported by Lucas Rocha.

2007-06-12  Kristian Rietveld  <kris@imendio.com>

	Fix #410815, reported by Lucas Rocha.

	* gtk/gtkiconview.c (gtk_icon_view_layout): determine a suitable
	wrap-width with the first icon, if it exists,
	(adjust_wrap_width): try to use icon_view->priv->item_width
	if available,
	(gtk_icon_view_set_cell_data): don't call adjust_wrap_width here,
	which caused changes in wrap-width during the layouting process and
	resulted in layouting artefacts,
	(update_text_cell): don't set the wrap-width property, this should
	be handled by adjust_wrap_width.


svn path=/trunk/; revision=18111
This commit is contained in:
Kristian Rietveld
2007-06-12 09:19:26 +00:00
committed by Kristian Rietveld
parent d6061b54e2
commit 8d5fd5168b
2 changed files with 41 additions and 9 deletions

View File

@ -1,3 +1,17 @@
2007-06-12 Kristian Rietveld <kris@imendio.com>
Fix #410815, reported by Lucas Rocha.
* gtk/gtkiconview.c (gtk_icon_view_layout): determine a suitable
wrap-width with the first icon, if it exists,
(adjust_wrap_width): try to use icon_view->priv->item_width
if available,
(gtk_icon_view_set_cell_data): don't call adjust_wrap_width here,
which caused changes in wrap-width during the layouting process and
resulted in layouting artefacts,
(update_text_cell): don't set the wrap-width property, this should
be handled by adjust_wrap_width.
2007-06-12 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkwindow.c (gdk_window_get_pointer): Improve docs.