summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser.fl
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-03-25 16:11:07 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-03-25 16:11:07 +0000
commita343b0d4e40d6dd295cfea1a6bc66940b7edff34 (patch)
tree8694e94efffe3d725471039f6f99a0b46b7ef086 /src/Fl_File_Chooser.fl
parentce40d4a0e67b79b48471d6328f46817d2e064544 (diff)
Pressing Enter in the file chooser when selecting a directory
will choose that directory if it is currently shown (STR #746) Added a fl_file_chooser_ok_label() function to set the "OK" button label for the fl_file_chooser() and fl_dir_chooser() functions. Added Fl_File_Chooser::ok_label() methods to set the "OK" button label. The fl_ask() function is now deprecated since it does not conform to the FLTK Human Interface Guidelines. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser.fl')
-rw-r--r--src/Fl_File_Chooser.fl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl
index 656b5e987..cccbbd3e4 100644
--- a/src/Fl_File_Chooser.fl
+++ b/src/Fl_File_Chooser.fl
@@ -150,7 +150,7 @@ window->hide();}
private xywh {408 345 72 25}
code0 {o->label(fl_cancel);}
}
- Fl_Box {} {selected
+ Fl_Box {} {
private xywh {10 345 30 25} resizable
}
}
@@ -399,6 +399,9 @@ decl {FL_EXPORT char *fl_file_chooser(const char *message,const char *pat,const
decl {FL_EXPORT void fl_file_chooser_callback(void (*cb)(const char*));} {public
}
+decl {FL_EXPORT void fl_file_chooser_ok_label(const char*l);} {selected public
+}
+
comment {
//
// End of "$Id$".