[gtk+] Make overlay scrollbar fading interruptible
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make overlay scrollbar fading interruptible
- Date: Fri, 14 Nov 2014 16:50:54 +0000 (UTC)
commit a7173d097f4fc7a01141f16c4087d88af8f44559
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 14 11:49:33 2014 -0500
Make overlay scrollbar fading interruptible
When the pointer starts hovering the scrollbar after it already
started fading out, interrupt the fade and keep the scrollbar
around.
gtk/gtkscrolledwindow.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 4ca59a7..afaf69f 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -3519,6 +3519,7 @@ indicator_enter_notify (GtkWidget *scrollbar,
gtk_style_context_add_class (context, "hovering");
gtk_widget_queue_resize (scrollbar);
indicator->over = TRUE;
+ indicator_start_fade (indicator, 1.0);
return G_SOURCE_CONTINUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]