summaryrefslogtreecommitdiff
path: root/src/fl_file_chooser.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-08-03 15:48:20 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-08-03 15:48:20 +0000
commit5994addecaf731a9468b77a4d3bb4e93def7a6e7 (patch)
tree8193abd7a37213754e071cc54fbc540d0a69b9fe /src/fl_file_chooser.cxx
parent0771e7cc7d5f6008260058511bfc2d273282d926 (diff)
Fixed tooltips under WIN32 - no more toolbar buttons...
Fl_Group::handle() didn't pass FL_RELEASE events to Fl_Browser_ and similar subclasses of Fl_Group; updated to pass only to widget that should receive the event. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_file_chooser.cxx')
-rw-r--r--src/fl_file_chooser.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fl_file_chooser.cxx b/src/fl_file_chooser.cxx
index 271810db8..d53adc7d8 100644
--- a/src/fl_file_chooser.cxx
+++ b/src/fl_file_chooser.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_file_chooser.cxx,v 1.10.2.10.2.1 2001/08/02 16:17:04 easysw Exp $"
+// "$Id: fl_file_chooser.cxx,v 1.10.2.10.2.2 2001/08/03 15:48:20 easysw Exp $"
//
// File chooser widget for the Fast Light Tool Kit (FLTK).
//
@@ -37,6 +37,8 @@ void fl_file_chooser_callback(void (*cb)(const char*)) {
char* fl_file_chooser(const char* message, const char* pat, const char* fname)
{
+ if (!fname || !*fname) fname = ".";
+
if (!fc) fc = new Fl_FileChooser(fname, pat, Fl_FileChooser::CREATE, message);
else {
fc->filter(pat);
@@ -54,5 +56,5 @@ char* fl_file_chooser(const char* message, const char* pat, const char* fname)
//
-// End of "$Id: fl_file_chooser.cxx,v 1.10.2.10.2.1 2001/08/02 16:17:04 easysw Exp $".
+// End of "$Id: fl_file_chooser.cxx,v 1.10.2.10.2.2 2001/08/03 15:48:20 easysw Exp $".
//