aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2008-11-30 10:48:35 -0300
committerJorge Arellano Cid <jcid@dillo.org>2008-11-30 10:48:35 -0300
commit58aaa5c9ee0a674a1a29f95c9fe047540fc44df1 (patch)
treea253ea845c2c905bffb9220175f14e880c9cb6f5 /test
parent163277cb82fa38a5e7a5b1728f5d9535efb2c921 (diff)
- Set middle click to submit in a new TAB. (Helps to keep form data!)
Diffstat (limited to 'test')
-rw-r--r--test/form.cc4
-rw-r--r--test/form.hh4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/form.cc b/test/form.cc
index b337a25b..ab9994a9 100644
--- a/test/form.cc
+++ b/test/form.cc
@@ -165,9 +165,9 @@ Form::FormClickedReceiver::~FormClickedReceiver ()
}
void Form::FormClickedReceiver::clicked (ButtonResource *resource,
- int buttonNo, int x, int y)
+ dw::core::EventButton *event)
{
- form->send (name, value, x, y);
+ form->send (name, value, event->xCanvas, event->yCanvas);
}
Form::Form ()
diff --git a/test/form.hh b/test/form.hh
index a04460f4..76eae9fe 100644
--- a/test/form.hh
+++ b/test/form.hh
@@ -130,8 +130,8 @@ private:
FormClickedReceiver (Form *form, const char *name, const char *value);
~FormClickedReceiver ();
- void clicked (dw::core::ui::ButtonResource *resource, int buttonNo,
- int x, int y);
+ void clicked(dw::core::ui::ButtonResource *resource,
+ dw::core::EventButton *event);
};
lout::container::typed::List <ResourceDecorator> *resources;