Call gtk_tooltip_hide_tooltip() even if the tooltip is not visible yet.

2007-07-25  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktooltip.c (_gtk_tooltip_handle_event): Call
        gtk_tooltip_hide_tooltip() even if the tooltip is not
        visible yet. This fixes annoying dangling tooltips
        on systray icons.


svn path=/trunk/; revision=18544
This commit is contained in:
Matthias Clasen 2007-07-25 17:45:22 +00:00 committed by Matthias Clasen
parent ffed09f28a
commit ef8bdfb703
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2007-07-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktooltip.c (_gtk_tooltip_handle_event): Call
gtk_tooltip_hide_tooltip() even if the tooltip is not
visible yet. This fixes annoying dangling tooltips
on systray icons.
2007-07-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconcachevalidator.c: Silence the validator.

View File

@ -1118,7 +1118,7 @@ _gtk_tooltip_handle_event (GdkEvent *event)
/* Hide the tooltip when there's no new tooltip widget */
if (!has_tooltip_widget)
{
if (current_tooltip && GTK_TOOLTIP_VISIBLE (current_tooltip))
if (current_tooltip)
gtk_tooltip_hide_tooltip (current_tooltip);
return;