diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-07-25 17:45:22 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-07-25 17:45:22 +0000 |
commit | ef8bdfb7033cfc79a945707d751faeed6d2a821c (patch) | |
tree | e214642a501e30dc4d3c9561fb1ee9d6ca55cf89 | |
parent | ffed09f28af6625eb644e037a928846c3be412bf (diff) | |
download | gtk+-ef8bdfb7033cfc79a945707d751faeed6d2a821c.tar.gz |
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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gtk/gtktooltip.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -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. diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 2d60b7c65d..77d465ca90 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -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; |