13
0

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

@ -39,6 +39,9 @@ public:
virtual bool dragging () const;
void explicit_show ();
void explicit_hide ();
private:
bool timeout ();
void show ();

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 ();
}