[gtk+] scrolledwindow: Don't hide indicators if leaving towards a child



commit 93ae728cc63db3fa724d7079d4f05d9a99e11912
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Feb 2 12:58:56 2015 +0100

    scrolledwindow: Don't hide indicators if leaving towards a child
    
    In that case the scrolledwindow still gets events through the captured
    handler, and can thus still control visibility, so hiding the indicators
    in this case can only lead to flashing.

 gtk/gtkscrolledwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index bf1dbba..d469668 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -393,7 +393,7 @@ gtk_scrolled_window_leave_notify (GtkWidget        *widget,
 {
   GtkScrolledWindowPrivate *priv = GTK_SCROLLED_WINDOW (widget)->priv;
 
-  if (priv->use_indicators)
+  if (priv->use_indicators && event->detail != GDK_NOTIFY_INFERIOR)
     {
       indicator_set_over (&priv->hindicator, FALSE);
       indicator_set_over (&priv->vindicator, FALSE);


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