summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser2.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-11-20 15:49:24 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-11-20 15:49:24 +0000
commit5f5d68561f8b728bbabbef648d7fd818b8689df8 (patch)
tree8da338abee032b1f3ea0018ad7569882b179f499 /src/Fl_File_Chooser2.cxx
parent4bf99bdfc65a65ae2e8bd14b6eda32c521c8fd88 (diff)
Fl_File_Input::value("") didn't work.
The window close callback also needed to set the filename to "". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser2.cxx')
-rw-r--r--src/Fl_File_Chooser2.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx
index 1e7aeb0d3..cbd5cad28 100644
--- a/src/Fl_File_Chooser2.cxx
+++ b/src/Fl_File_Chooser2.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.27 2002/11/19 16:37:34 easysw Exp $"
+// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.28 2002/11/20 15:49:24 easysw Exp $"
//
// More Fl_File_Chooser routines.
//
@@ -119,6 +119,9 @@ Fl_File_Chooser::count()
{
// Check to see if the file name input field is blank...
filename = fileName->value();
+
+// printf("Fl_File_Chooser::count(): filename=\"%s\"\n", filename);
+
if (filename == NULL || filename[0] == '\0')
return (0);
@@ -413,6 +416,7 @@ Fl_File_Chooser::fileListCB()
filename = pathname + strlen(pathname) - 1;
if (*filename == '/') *filename = '\0';
+// puts("Setting fileName from fileListCB...");
fileName->value(pathname);
// Update the preview box...
@@ -448,6 +452,8 @@ Fl_File_Chooser::fileNameCB()
const char *file; // File from directory
+// puts("fileNameCB()");
+
// Get the filename from the text field...
filename = (char *)fileName->value();
@@ -785,6 +791,7 @@ Fl_File_Chooser::rescan()
if (pathname[0] && pathname[strlen(pathname) - 1] != '/') {
strlcat(pathname, "/", sizeof(pathname));
}
+// puts("Setting fileName in rescan()");
fileName->value(pathname);
if (type_ & DIRECTORY)
@@ -1152,5 +1159,5 @@ unquote_pathname(char *dst, // O - Destination string
//
-// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.27 2002/11/19 16:37:34 easysw Exp $".
+// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.28 2002/11/20 15:49:24 easysw Exp $".
//