From 6c3a9ec36a4cc68ee241a96511d36f611370e947 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 15 Dec 2001 15:20:54 +0000 Subject: 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 --- src/Fl_File_Chooser.fl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Fl_File_Chooser.fl') diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl index b92548d44..215a81fc5 100644 --- a/src/Fl_File_Chooser.fl +++ b/src/Fl_File_Chooser.fl @@ -89,8 +89,7 @@ fileList->filter(p); type(t); value(d); callback_ = 0; -data_ = 0;} {selected - } +data_ = 0;} {} } decl {void (*callback_)(Fl_File_Chooser*, void *);} {} decl {void *data_;} {} @@ -156,6 +155,11 @@ rescan();} {} code {window->show(); fileList->deselect();} {} } + Function {shown()} {return_type int + } { + code {return window->shown();} {selected + } + } Function {textcolor(Fl_Color c)} {return_type void } { code {fileList->textcolor(c);} {} -- cgit v1.2.3