fixup stuck persistent tooltips.
This commit is contained in:
parent
c809e528c0
commit
d40ad1f6ff
@ -39,6 +39,9 @@ public:
|
||||
|
||||
virtual bool dragging () const;
|
||||
|
||||
void explicit_show ();
|
||||
void explicit_hide ();
|
||||
|
||||
private:
|
||||
bool timeout ();
|
||||
void show ();
|
||||
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user