[gtk+/gtk-3-2] Bug 653676 - Expand/Collapse doesn't respond after one click



commit 32c08de08cb9c51b46ff76a9e2a899aadc71aa91
Author: Rui Matos <tiagomatos gmail com>
Date:   Sun Nov 20 21:00:08 2011 +0100

    Bug 653676 - Expand/Collapse doesn't respond after one click
    
    Ignore leave-notify-event when mode is GDK_CROSSING_GTK_[UN]GRAB.
    Just [un]grabbing shouldn't cause us to [un]prelight the current arrow
    and node.

 gtk/gtktreeview.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 8514638..9784967 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -5923,7 +5923,9 @@ gtk_tree_view_leave_notify (GtkWidget        *widget,
 {
   GtkTreeView *tree_view;
 
-  if (event->mode == GDK_CROSSING_GRAB)
+  if (event->mode == GDK_CROSSING_GRAB ||
+      event->mode == GDK_CROSSING_GTK_GRAB ||
+      event->mode == GDK_CROSSING_GTK_UNGRAB)
     return TRUE;
 
   tree_view = GTK_TREE_VIEW (widget);



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