fixup stuck persistent tooltips.

This commit is contained in:
Robin Gareus 2015-04-25 03:00:57 +02:00
parent c809e528c0
commit d40ad1f6ff
2 changed files with 18 additions and 1 deletions

View file

@ -63,11 +63,25 @@ PersistentTooltip::timeout ()
return false;
}
void
PersistentTooltip::explicit_show ()
{
_timeout.disconnect ();
show ();
}
void
PersistentTooltip::explicit_hide ()
{
_timeout.disconnect ();
hide ();
}
bool
PersistentTooltip::leave (GdkEventCrossing *)
{
_timeout.disconnect ();
if (!dragging ()) {
_timeout.disconnect ();
hide ();
}