GtkTreeView: Update prelight row after revalidating rows

It might have changed (eg. after a row being expanded, and the child
rows revalidated), so just update it here based on the last pointer
position.

Based on a patch by Maxim Reznik <reznikmm@gmail.com>

https://bugzilla.gnome.org/show_bug.cgi?id=760891
This commit is contained in:
Carlos Garnacho 2016-01-21 15:22:42 +01:00
parent a5f9dc1284
commit f32a54fb70

View File

@ -6990,6 +6990,11 @@ do_validate_rows (GtkTreeView *tree_view, gboolean queue_resize)
if (path) gtk_tree_path_free (path);
g_timer_destroy (timer);
if (!retval && gtk_widget_get_mapped (GTK_WIDGET (tree_view)))
update_prelight (tree_view,
tree_view->priv->event_last_x,
tree_view->priv->event_last_y);
return retval;
}