aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/widget.cc')
-rw-r--r--dw/widget.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index 670e2c43..fb0d29e0 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -594,12 +594,20 @@ bool Widget::motionNotifyImpl (EventMotion *event)
return false;
}
-void Widget::enterNotifyImpl (EventCrossing *event)
+void Widget::enterNotifyImpl (EventCrossing *)
{
+ core::style::Tooltip *tooltip = getStyle()->x_tooltip;
+
+ if (tooltip)
+ tooltip->onEnter();
}
-void Widget::leaveNotifyImpl (EventCrossing *event)
+void Widget::leaveNotifyImpl (EventCrossing *)
{
+ core::style::Tooltip *tooltip = getStyle()->x_tooltip;
+
+ if (tooltip)
+ tooltip->onLeave();
}
void Widget::removeChild (Widget *child)