diff options
author | corvid <corvid@lavabit.com> | 2010-04-22 01:30:41 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-04-22 01:30:41 +0000 |
commit | 058a4701d0bef09d21658923e0b4a30e12643b8e (patch) | |
tree | 30af5bb95c6fa73c09b3e5394e31329df7ed7843 /dw/image.cc | |
parent | d20fe82191d472b3073b793aee4508323a95b075 (diff) |
move generic tooltip enter/leave to Widget
Technically, Textblock's notifyImpl()s should probably call the Widget
one as well. It doesn't matter currently, since we don't look
for title attrs on elements that correspond to entire Textblocks.
Diffstat (limited to 'dw/image.cc')
-rw-r--r-- | dw/image.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/dw/image.cc b/dw/image.cc index 13212cdc..cab40ed5 100644 --- a/dw/image.cc +++ b/dw/image.cc @@ -247,28 +247,22 @@ void Image::enterNotifyImpl (core::EventCrossing *event) { // BUG: this is wrong for image maps, but the cursor position is unknown. currLink = getStyle()->x_link; - core::style::Tooltip *tooltip = getStyle()->x_tooltip; if (currLink != -1) { (void) layout->emitLinkEnter (this, currLink, -1, -1, -1); } - if (tooltip) { - tooltip->onEnter(); - } + Widget::enterNotifyImpl(event); } void Image::leaveNotifyImpl (core::EventCrossing *event) { - core::style::Tooltip *tooltip = getStyle()->x_tooltip; clicking = false; if (currLink != -1) { currLink = -1; (void) layout->emitLinkEnter (this, -1, -1, -1, -1); } - if (tooltip) { - tooltip->onLeave(); - } + Widget::leaveNotifyImpl(event); } /* |