From b475babf172ec6702af57f514c6fc28bd43159da Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 21 Apr 2009 09:09:37 +0000 Subject: Most test demos converted to use Fl_Double_Window to prevent flicker when new users run test/demo programs. For details, see fltk.development thread started 04/16/09, "Subject: browser demo flicker". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/file_chooser.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/file_chooser.cxx') diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx index 8af406647..872994e2c 100644 --- a/test/file_chooser.cxx +++ b/test/file_chooser.cxx @@ -48,6 +48,7 @@ #include #include #include +#include #include @@ -91,9 +92,9 @@ int // O - Exit status main(int argc, // I - Number of command-line arguments char *argv[]) // I - Command-line arguments { - Fl_Window *window;// Main window - Fl_Button *button;// Buttons - Fl_File_Icon *icon; // New file icon + Fl_Double_Window *window;// Main window + Fl_Button *button;// Buttons + Fl_File_Icon *icon; // New file icon // Make the file chooser... @@ -108,7 +109,7 @@ main(int argc, // I - Number of command-line arguments Fl_Shared_Image::add_handler(ps_check); // Make the main window... - window = new Fl_Window(400, 215, "File Chooser Test"); + window = new Fl_Double_Window(400, 215, "File Chooser Test"); filter = new Fl_Input(50, 10, 315, 25, "Filter:"); if (argc > 1) -- cgit v1.2.3