From ef1da5f6c2450fc5f7c7de4a17114cc7507a41ad Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Tue, 21 Aug 2007 11:09:42 +0000 Subject: [PATCH] always set hide_tooltip to TRUE if we are handling a leave notify event. 2007-08-21 Kristian Rietveld * gtk/gtktooltip.c (_gtk_tooltip_handle_event): always set hide_tooltip to TRUE if we are handling a leave notify event. (Fixes #468245, reported by Dennis Jacobfeuerborn). svn path=/trunk/; revision=18666 --- ChangeLog | 6 ++++++ gtk/gtktooltip.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 908c46857..9ac9d8d71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-08-21 Kristian Rietveld + + * gtk/gtktooltip.c (_gtk_tooltip_handle_event): always set + hide_tooltip to TRUE if we are handling a leave notify event. (Fixes + #468245, reported by Dennis Jacobfeuerborn). + 2007-08-21 Michael Natterer * gtk/gtkpaned.c (gtk_paned_class_init): applied patch from Mikael diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 46ca8179a..25dc578eb 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -1223,6 +1223,9 @@ _gtk_tooltip_handle_event (GdkEvent *event) /* Requested to be hidden? */ hide_tooltip = !return_value; + /* Leave notify should override the query function */ + hide_tooltip = (event->type == GDK_LEAVE_NOTIFY); + /* Is the pointer above another widget now? */ if (GTK_TOOLTIP_VISIBLE (current_tooltip)) hide_tooltip |= has_tooltip_widget != current_tooltip->tooltip_widget;