[gtk+/quartz-integration: 90/108] tooltips: treat scroll events like key/button press instead of motion
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/quartz-integration: 90/108] tooltips: treat scroll events like key/button press instead of motion
- Date: Wed, 4 May 2011 06:33:36 +0000 (UTC)
commit 91a35082c1957ffe9c21c42532c1414b81653f47
Author: Kristian Rietveld <kris gtk org>
Date: Sun May 1 16:38:56 2011 +0200
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.
gtk/gtktooltip.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 97b707a..8e70c29 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]