summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-07-25 17:45:22 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-07-25 17:45:22 +0000
commitef8bdfb7033cfc79a945707d751faeed6d2a821c (patch)
treee214642a501e30dc4d3c9561fb1ee9d6ca55cf89
parentffed09f28af6625eb644e037a928846c3be412bf (diff)
downloadgtk+-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--ChangeLog7
-rw-r--r--gtk/gtktooltip.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e8bdeeffc4..8694cfaa0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;