diff options
author | corvid <corvid@lavabit.com> | 2009-10-29 02:54:38 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-10-29 02:54:38 +0000 |
commit | 169ff236fe45e3671dab67e50bd95e77b4f68414 (patch) | |
tree | f5cd905b05aa6d8cbdb795011ba3c0999c6b2812 /test | |
parent | 06aa8e6786a22374139cbcf9d018e53865875467 (diff) |
fix up dw tests
Diffstat (limited to 'test')
-rw-r--r-- | test/dw_links.cc | 4 | ||||
-rw-r--r-- | test/dw_links2.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/dw_links.cc b/test/dw_links.cc index ada9c49f..cfa94d0c 100644 --- a/test/dw_links.cc +++ b/test/dw_links.cc @@ -32,7 +32,7 @@ using namespace dw::core; using namespace dw::core::style; using namespace dw::fltk; -class LinkTestReceiver: public Widget::LinkReceiver +class LinkTestReceiver: public Layout::LinkReceiver { bool enter (Widget *widget, int link, int img, int x, int y); bool press (Widget *widget, int link, int img, int x, int y, @@ -102,7 +102,7 @@ int main(int argc, char **argv) textblock->setStyle (widgetStyle); layout->setWidget (textblock); - textblock->connectLink (&linkTestReceiver); + layout->connectLink (&linkTestReceiver); widgetStyle->unref(); diff --git a/test/dw_links2.cc b/test/dw_links2.cc index 7aede1c8..c63d8747 100644 --- a/test/dw_links2.cc +++ b/test/dw_links2.cc @@ -32,7 +32,7 @@ using namespace dw::core; using namespace dw::core::style; using namespace dw::fltk; -class LinkTestReceiver: public Widget::LinkReceiver +class LinkTestReceiver: public Layout::LinkReceiver { bool enter (Widget *widget, int link, int img, int x, int y); bool press (Widget *widget, int link, int img, int x, int y, @@ -130,7 +130,7 @@ int main(int argc, char **argv) textblock->setStyle (widgetStyle); layout->setWidget (textblock); - textblock->connectLink (new LinkTestReceiver ()); + layout->connectLink (new LinkTestReceiver ()); widgetStyle->unref(); |