summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser.fl
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-05-01 08:28:59 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-05-01 08:28:59 +0000
commit43b4048b9c613e23ce80e2ce9c96cf30334fe931 (patch)
tree3b9cf150b98313f4effd8723a6d48b4ebad6ec70 /src/Fl_File_Chooser.fl
parente5ceaa48e4db781002fc1ff66febf9fd11de95b9 (diff)
Fix file chooser bug - show() was calling deselect() when it shouldn't
have been. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser.fl')
-rw-r--r--src/Fl_File_Chooser.fl12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl
index 7625f4681..c4a055a94 100644
--- a/src/Fl_File_Chooser.fl
+++ b/src/Fl_File_Chooser.fl
@@ -10,8 +10,7 @@ class Fl_File_Chooser {open
} {
Fl_Window window {
label {Pick a File}
- callback {fileList->deselect();
-fileName->value("");
+ callback {fileName->value(directory_);
window->hide();} open
private xywh {99 225 375 325} resizable
code0 {if (title) window->label(title);}
@@ -78,8 +77,7 @@ window->hide();}
}
Fl_Button {} {
label Cancel
- callback {fileList->deselect();
-fileName->value("");
+ callback {fileName->value(directory_);
window->hide();}
private xywh {285 290 80 25}
code0 {o->label(fl_cancel);}
@@ -154,8 +152,8 @@ rescan();} {}
Function {show()} {open return_type void
} {
code {window->hotspot(fileList);
-window->show();
-fileList->deselect();} {}
+window->show();} {selected
+ }
}
Function {shown()} {return_type int
} {
@@ -217,7 +215,7 @@ else
}
decl {static const char *filename_label;} {public
}
- decl {static const char *filter_label;} {selected public
+ decl {static const char *filter_label;} {public
}
}