changeset 2010:c60462acb9cf

Fix for dw_anchors_test.cc and dw_find_test.cc
author Jorge Arellano Cid <jcid@dillo.org>
date Thu, 12 May 2011 07:56:42 -0400
parents 234097ef5e23
children 74925c1746dd bfb8bc9ddf62
files dw/fltkviewbase.hh test/dw_anchors_test.cc test/dw_find_test.cc
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkviewbase.hh	Thu May 12 07:56:37 2011 -0400
+++ b/dw/fltkviewbase.hh	Thu May 12 07:56:42 2011 -0400
@@ -6,7 +6,6 @@
 
 #include <FL/Fl_Group.H>
 #include <FL/x.H>
-#include <FL/Fl_Scrollbar.H>
 
 #include "fltkcore.hh"
 
--- a/test/dw_anchors_test.cc	Thu May 12 07:56:37 2011 -0400
+++ b/test/dw_anchors_test.cc	Thu May 12 07:56:42 2011 -0400
@@ -102,6 +102,7 @@
    window->begin();
 
    viewport = new FltkViewport (50, 0, 200, 200);
+   viewport->end();
    layout->attachView (viewport);
 
    for (int i = 0; i < 10; i++) {
--- a/test/dw_find_test.cc	Thu May 12 07:56:37 2011 -0400
+++ b/test/dw_find_test.cc	Thu May 12 07:56:42 2011 -0400
@@ -76,15 +76,18 @@
    window->begin();
 
    viewport = new FltkViewport (0, 0, 200, 280);
+   viewport->end();
    layout->attachView (viewport);
 
    findButton = new Fl_Button(0, 280, 50, 20, "Find");
    findButton->callback (findCallback, NULL);
    findButton->when (FL_WHEN_RELEASE);
+   findButton->clear_visible_focus ();
 
    resetButton = new Fl_Button(50, 280, 50, 20, "Reset");
    resetButton->callback (resetCallback, NULL);
    resetButton->when (FL_WHEN_RELEASE);
+   resetButton->clear_visible_focus ();
 
    resultLabel = new Fl_Box(100, 280, 100, 20, "---");