[gtk+/wip/baedert/gtkimageview] GtkTreeView: Update prelight row after revalidating rows



commit b946427e93528d57c505cf480543db6a8f1a4093
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 b0688e3..9984f92 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -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;
 }
 


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