changeset 1375:fe84358f46d1

fix up dw tests
author corvid <corvid@lavabit.com>
date Thu, 29 Oct 2009 02:54:38 +0000
parents d53735f4d362
children 039541ac9f7b
files test/dw_links.cc test/dw_links2.cc
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/dw_links.cc	Thu Oct 29 02:34:17 2009 +0000
+++ b/test/dw_links.cc	Thu Oct 29 02:54:38 2009 +0000
@@ -32,7 +32,7 @@
 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 @@
    textblock->setStyle (widgetStyle);
    layout->setWidget (textblock);
 
-   textblock->connectLink (&linkTestReceiver);
+   layout->connectLink (&linkTestReceiver);
 
    widgetStyle->unref();
 
--- a/test/dw_links2.cc	Thu Oct 29 02:34:17 2009 +0000
+++ b/test/dw_links2.cc	Thu Oct 29 02:54:38 2009 +0000
@@ -32,7 +32,7 @@
 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 @@
    textblock->setStyle (widgetStyle);
    layout->setWidget (textblock);
 
-   textblock->connectLink (new LinkTestReceiver ());
+   layout->connectLink (new LinkTestReceiver ());
 
    widgetStyle->unref();