tweak persistent tooltip:
* don’t show empty tooltips * “smaller” widgets may receive a leave event before the timeout can show the tooltip (knobs in particula)
This commit is contained in:
parent
28f3f2d78c
commit
a33cc51176
@ -65,8 +65,8 @@ PersistentTooltip::timeout ()
|
||||
bool
|
||||
PersistentTooltip::leave (GdkEventCrossing *)
|
||||
{
|
||||
_timeout.disconnect ();
|
||||
if (!dragging ()) {
|
||||
_timeout.disconnect ();
|
||||
hide ();
|
||||
}
|
||||
|
||||
@ -110,6 +110,9 @@ PersistentTooltip::hide ()
|
||||
void
|
||||
PersistentTooltip::show ()
|
||||
{
|
||||
if (_tip.empty()) {
|
||||
return;
|
||||
}
|
||||
if (!_window) {
|
||||
_window = new Window (WINDOW_POPUP);
|
||||
_window->set_name (X_("ContrastingPopup"));
|
||||
|
Loading…
Reference in New Issue
Block a user