13
0

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:
Robin Gareus 2015-04-25 01:02:53 +02:00
parent 28f3f2d78c
commit a33cc51176

View File

@ -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"));