summaryrefslogtreecommitdiff
path: root/fluid/Fl_Function_Type.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-03-25 18:58:18 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-03-25 18:58:18 +0000
commitf5ed012b28231526a56e302a923d24f82a7fad2d (patch)
treed02d88f5b5584d735d8e27be36dbda1949d2a191 /fluid/Fl_Function_Type.cxx
parent2ccbfdccc91c9fd139ae5a6dcb48226323381a17 (diff)
Updated Fl_File_Chooser to correctly deselect other items when
the user picks a file or directory in multiple selection mode (only files or directories, not both at once...) Use the fl_file_chooser_ok_label() function in FLUID. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
-rw-r--r--fluid/Fl_Function_Type.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index 67ba7fae1..9b6b06b8c 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -780,7 +780,9 @@ void Fl_Comment_Type::open() {
}
else if (w == comment_load) {
// load a comment from disk
+ fl_file_chooser_ok_label("Use File");
const char *fname = fl_file_chooser("Pick a comment", 0L, 0L);
+ fl_file_chooser_ok_label(NULL);
if (fname) {
if (comment_input->buffer()->loadfile(fname)) {
fl_alert("Error loading file\n%s", fname);