summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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;