when not using an explicit alignment, use the full area of the row (not

2006-12-03  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (validate_visible_area): when not using an
	explicit alignment, use the full area of the row (not just dy)
	to determine how to implicitly align it.  (Fixes #363191, reported
	by Federico Mena Quintero).
This commit is contained in:
Kristian Rietveld 2006-12-03 15:14:51 +00:00 committed by Kristian Rietveld
parent f71cc8fcaf
commit 44cac29d90
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2006-12-03 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (validate_visible_area): when not using an
explicit alignment, use the full area of the row (not just dy)
to determine how to implicitly align it. (Fixes #363191, reported
by Federico Mena Quintero).
2006-12-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (insert_theme): Properly clean up

View File

@ -5679,7 +5679,8 @@ validate_visible_area (GtkTreeView *tree_view)
else
{
/* row not visible */
if (dy >= 0 && dy <= tree_view->priv->vadjustment->page_size)
if (dy >= 0
&& dy + height <= tree_view->priv->vadjustment->page_size)
{
/* row at the beginning -- fixed */
area_above = dy;
@ -5688,7 +5689,7 @@ validate_visible_area (GtkTreeView *tree_view)
}
else if (dy >= (tree_view->priv->vadjustment->upper -
tree_view->priv->vadjustment->page_size)
&& dy <= tree_view->priv->vadjustment->upper)
&& dy + height <= tree_view->priv->vadjustment->upper)
{
/* row at the end -- fixed */
area_above = dy - (tree_view->priv->vadjustment->upper -