diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-15 15:20:54 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-15 15:20:54 +0000 |
| commit | 6c3a9ec36a4cc68ee241a96511d36f611370e947 (patch) | |
| tree | 92e47f195725a5e95f328013c13eabc1c1bb2240 /src/fl_file_dir.cxx | |
| parent | 4ef0817b83113c7231e3866942d71708026d30d6 (diff) | |
Add "shown()" method to Fl_File_Chooser.
Use "while shown" instead of "while visible" in chooser functions,
since a desktop switch will make FLTK think the window is not visible
and prematurely return whatever file you have selected.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_file_dir.cxx')
| -rw-r--r-- | src/fl_file_dir.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fl_file_dir.cxx b/src/fl_file_dir.cxx index f8ffe82d6..463760591 100644 --- a/src/fl_file_dir.cxx +++ b/src/fl_file_dir.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_file_dir.cxx,v 1.1.2.3 2001/11/26 00:15:06 easysw Exp $" +// "$Id: fl_file_dir.cxx,v 1.1.2.4 2001/12/15 15:20:54 easysw Exp $" // // File chooser widget for the Fast Light Tool Kit (FLTK). // @@ -61,7 +61,7 @@ char* fl_file_chooser(const char* message, const char* pat, const char* fname) fc->show(); - while (fc->visible()) + while (fc->shown()) Fl::wait(); if (fc->value()) { @@ -91,7 +91,7 @@ char* fl_dir_chooser(const char* message, const char* fname) fc->show(); - while (fc->visible()) + while (fc->shown()) Fl::wait(); if (fc->value()) { @@ -103,5 +103,5 @@ char* fl_dir_chooser(const char* message, const char* fname) // -// End of "$Id: fl_file_dir.cxx,v 1.1.2.3 2001/11/26 00:15:06 easysw Exp $". +// End of "$Id: fl_file_dir.cxx,v 1.1.2.4 2001/12/15 15:20:54 easysw Exp $". // |
