diff options
author | corvid <corvid@lavabit.com> | 2009-10-29 02:21:08 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-10-29 02:21:08 +0000 |
commit | 21f85b39f22ff0f5cd373a4cfedba115ee533e98 (patch) | |
tree | 2f0f83b174694e8bca454480942bc0f1bcdec799 /dw/selection.cc | |
parent | 2949961d999576c217bb5be79fd643d53eb6698a (diff) |
move link signal emitter/receiver from Widget to Layout
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-October/006936.html
Diffstat (limited to 'dw/selection.cc')
-rw-r--r-- | dw/selection.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/dw/selection.cc b/dw/selection.cc index 08d3bf00..275eddaa 100644 --- a/dw/selection.cc +++ b/dw/selection.cc @@ -118,8 +118,7 @@ bool SelectionState::buttonPress (Iterator *it, int charPos, int linkNo, if (linkNo != -1) { // link handling if (event) { - // return value is ignored - itWidget->emitLinkPress (linkNo, -1, -1, -1, event); + (void) layout->emitLinkPress (itWidget, linkNo, -1, -1, -1, event); resetLink (); linkState = LINK_PRESSED; linkButton = event->button; @@ -162,7 +161,7 @@ bool SelectionState::buttonPress (Iterator *it, int charPos, int linkNo, } else { if (event && event->button == 3) { // menu popup - itWidget->emitLinkPress (-1, -1, -1, -1, event); + layout->emitLinkPress (itWidget, -1, -1, -1, -1, event); ret = true; } } @@ -182,14 +181,12 @@ bool SelectionState::buttonRelease (Iterator *it, int charPos, int linkNo, // link handling ret = true; if (linkNo != -1) - // return value is ignored - itWidget->emitLinkRelease (linkNo, -1, -1, -1, event); + (void) layout->emitLinkRelease (itWidget, linkNo, -1, -1, -1, event); // The link where the user clicked the mouse button? if (linkNo == linkNumber) { resetLink (); - // return value is ignored - itWidget->emitLinkClick (linkNo, -1, -1, -1, event); + (void) layout->emitLinkClick (itWidget, linkNo, -1, -1, -1, event); } else { if (event->button == 1) // Reset links and switch to selection mode. The selection |