diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-07-23 11:40:55 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-07-23 11:40:55 +0000 |
| commit | a84f6826475f491045d79198db94d2efb7ad8cee (patch) | |
| tree | f6d955aa36eeba44b00e59b5ba4a2d42fef2fa0b /src/Fl_File_Chooser.cxx | |
| parent | 35b28fafd1a9b4d9bf67d3b01cfc1da9fad59f8c (diff) | |
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
Diffstat (limited to 'src/Fl_File_Chooser.cxx')
| -rw-r--r-- | src/Fl_File_Chooser.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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 <FL/fl_draw.h> 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(); } |
