summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser.fl
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_Chooser.fl
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_Chooser.fl')
-rw-r--r--src/Fl_File_Chooser.fl14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl
index 34738e680..8a35d8e6c 100644
--- a/src/Fl_File_Chooser.fl
+++ b/src/Fl_File_Chooser.fl
@@ -26,17 +26,17 @@ class Fl_File_Chooser {open
} {
Fl_Window window {
label {Choose File}
- callback {fileName->value(directory_);
+ callback {fileName->value("");
fileList->deselect();
Fl::remove_timeout((Fl_Timeout_Handler)previewCB, this);
window->hide();} open
- private xywh {153 80 490 380} resizable
+ private xywh {153 80 490 380} hide resizable
code0 {if (title) window->label(title);}
code1 {\#include <stdio.h>}
code2 {\#include <stdlib.h>}
- code3 {\#include <string.h>} modal visible
+ code3 {\#include <string.h>} modal
} {
- Fl_Group {} {open
+ Fl_Group {} {
private xywh {65 10 415 25}
} {
Fl_Choice showChoice {
@@ -58,7 +58,7 @@ window->hide();} open
}
}
Fl_Tile {} {
- callback {update_preview();} open
+ callback {update_preview();}
private xywh {10 45 470 225} resizable
} {
Fl_File_Browser fileList {
@@ -74,7 +74,7 @@ window->hide();} open
Fl_Group {} {open
private xywh {0 275 480 95}
} {
- Fl_Group {} {open
+ Fl_Group {} {
private xywh {10 275 470 20}
} {
Fl_Check_Button previewButton {
@@ -127,7 +127,7 @@ window->hide();} selected
}
}
Fl_Window favWindow {
- label {Manage Favorites} open
+ label {Manage Favorites}
private xywh {580 44 355 150} hide
code0 {favWindow->label(manage_favorites_label);} modal
} {