fixup stuck persistent tooltips.
This commit is contained in:
parent
c809e528c0
commit
d40ad1f6ff
|
@ -39,6 +39,9 @@ public:
|
||||||
|
|
||||||
virtual bool dragging () const;
|
virtual bool dragging () const;
|
||||||
|
|
||||||
|
void explicit_show ();
|
||||||
|
void explicit_hide ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool timeout ();
|
bool timeout ();
|
||||||
void show ();
|
void show ();
|
||||||
|
|
|
@ -63,11 +63,25 @@ PersistentTooltip::timeout ()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
PersistentTooltip::explicit_show ()
|
||||||
|
{
|
||||||
|
_timeout.disconnect ();
|
||||||
|
show ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
PersistentTooltip::explicit_hide ()
|
||||||
|
{
|
||||||
|
_timeout.disconnect ();
|
||||||
|
hide ();
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
PersistentTooltip::leave (GdkEventCrossing *)
|
PersistentTooltip::leave (GdkEventCrossing *)
|
||||||
{
|
{
|
||||||
|
_timeout.disconnect ();
|
||||||
if (!dragging ()) {
|
if (!dragging ()) {
|
||||||
_timeout.disconnect ();
|
|
||||||
hide ();
|
hide ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user