From a84f6826475f491045d79198db94d2efb7ad8cee Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 23 Jul 2005 11:40:55 +0000 Subject: In order to make the rescan effect of Fl_File_Chooser::show() more intuitive, I added a Fl::flush() to show the dialog immediatly, and changed the mouse cursor to a WAIT cursor while the rescan happens. On local Harddrives, the difference is almost invisible, but on remote connections, it should become clearer to the user what the file chooser is currently doing. (STR #827) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4447 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_File_Chooser.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Fl_File_Chooser.cxx') diff --git a/src/Fl_File_Chooser.cxx b/src/Fl_File_Chooser.cxx index b3fb06d53..f2acdb33b 100644 --- a/src/Fl_File_Chooser.cxx +++ b/src/Fl_File_Chooser.cxx @@ -28,6 +28,7 @@ // generated by Fast Light User Interface Designer (fluid) version 1.0107 #include "../FL/Fl_File_Chooser.H" +#include void Fl_File_Chooser::cb_window_i(Fl_Double_Window*, void*) { fileName->value(""); @@ -361,7 +362,6 @@ int w, h; okButton->measure_label(w, h); okButton->resize(cancelButton->x() - 50 - w, cancelButton->y(), w + 40, 25); -okButton->parent()->init_sizes(); } const char * Fl_File_Chooser::ok_label() { @@ -371,7 +371,10 @@ const char * Fl_File_Chooser::ok_label() { void Fl_File_Chooser::show() { window->hotspot(fileList); window->show(); +Fl::flush(); +fl_cursor(FL_CURSOR_WAIT); rescan(); +fl_cursor(FL_CURSOR_DEFAULT); fileName->take_focus(); } -- cgit v1.2.3