[gtk+/gtk-3-18] GtkTreeView: Update prelight row after revalidating rows



commit 8f3d613f79d38be12aac3c7656259c3b14e7f92c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jan 21 15:22:42 2016 +0100

    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

 gtk/gtktreeview.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 94f9419..c2f4589 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -6950,6 +6950,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;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]