diff options
author | corvid <corvid@lavabit.com> | 2009-10-03 02:22:31 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-10-03 02:22:31 +0000 |
commit | 74c690bc83186311a0567b5d35edd30961104ed4 (patch) | |
tree | 237cccf6a1b46b8499bb085bd92619e967f1749a /dw/image.cc | |
parent | 21979bd9dc1bc58ee8537d92d172ba4b23745a46 (diff) |
some tooltips
Diffstat (limited to 'dw/image.cc')
-rw-r--r-- | dw/image.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dw/image.cc b/dw/image.cc index e200e5b9..4230d115 100644 --- a/dw/image.cc +++ b/dw/image.cc @@ -226,20 +226,28 @@ 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) emitLinkEnter (currLink, -1, -1, -1); } + if (tooltip) { + tooltip->onEnter(); + } } void Image::leaveNotifyImpl (core::EventCrossing *event) { + core::style::Tooltip *tooltip = getStyle()->x_tooltip; clicking = false; if (currLink != -1) { currLink = -1; (void) emitLinkEnter (-1, -1, -1, -1); } + if (tooltip) { + tooltip->onLeave(); + } } /* |