mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
f71cc8fcaf
commit
44cac29d90
@ -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
|
||||
|
@ -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 -
|
||||
|
Loading…
Reference in New Issue
Block a user