summaryrefslogtreecommitdiff
path: root/gtk/gtktooltip.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2011-05-01 16:38:56 +0200
committerKristian Rietveld <kris@gtk.org>2011-05-01 16:39:21 +0200
commit0b3b2a943a8c4efd59742d16e1b036ab218d60a3 (patch)
tree7c7ebda35ce53a35999d7e8214af5d3665c36f42 /gtk/gtktooltip.c
parentcf588d7404bc6e536bdc8d95e1791f86f579c9c7 (diff)
downloadgtk+-0b3b2a943a8c4efd59742d16e1b036ab218d60a3.tar.gz
tooltips: treat scroll events like key/button press instead of motion
This avoids tooltips from staying visible when scrolling using scroll events. Suggested by Paul Davis.
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r--gtk/gtktooltip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 97b707a810..8e70c29822 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -1573,13 +1573,13 @@ _gtk_tooltip_handle_event (GdkEvent *event)
case GDK_KEY_PRESS:
case GDK_DRAG_ENTER:
case GDK_GRAB_BROKEN:
+ case GDK_SCROLL:
gtk_tooltip_hide_tooltip (current_tooltip);
break;
case GDK_MOTION_NOTIFY:
case GDK_ENTER_NOTIFY:
case GDK_LEAVE_NOTIFY:
- case GDK_SCROLL:
if (current_tooltip)
{
gboolean tip_area_set;