summaryrefslogtreecommitdiff
path: root/src/Fl_FileChooser.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-08-03 18:46:57 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-08-03 18:46:57 +0000
commit03b112773d646fec27265fb21ee9feea671b6fef (patch)
tree773f6b64e3f9b60a6142b67697e8ab85f30e4edb /src/Fl_FileChooser.cxx
parent5994addecaf731a9468b77a4d3bb4e93def7a6e7 (diff)
File chooser cleanup (use fl_ok and fl_cancel for translated label
strings) Remove fl_file_chooser_cb() function, which is not needed with the new Fl_FileChooser dialog and related widgets. List directories first, in boldface. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_FileChooser.cxx')
-rw-r--r--src/Fl_FileChooser.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_FileChooser.cxx b/src/Fl_FileChooser.cxx
index ffba23d5d..08f124ca3 100644
--- a/src/Fl_FileChooser.cxx
+++ b/src/Fl_FileChooser.cxx
@@ -104,16 +104,17 @@ Fl_FileChooser::Fl_FileChooser(const char *d, const char *p, int t, const char *
w->hotspot(o);
{ Fl_FileBrowser* o = fileList = new Fl_FileBrowser(10, 45, 355, 180);
o->type(2);
- o->when(FL_WHEN_RELEASE_ALWAYS);
o->callback((Fl_Callback*)cb_fileList);
Fl_Group::current()->resizable(o);
w->hotspot(o);
}
{ Fl_Button* o = new Fl_Button(285, 280, 80, 25, "Cancel");
o->callback((Fl_Callback*)cb_Cancel);
+ o->label(fl_cancel);
}
- { Fl_Return_Button* o = okButton = new Fl_Return_Button(205, 280, 75, 25, "OK");
+ { Fl_Return_Button* o = okButton = new Fl_Return_Button(200, 280, 75, 25, "OK");
o->callback((Fl_Callback*)cb_okButton);
+ okButton->label(fl_ok);
}
{ Fl_Input* o = fileName = new Fl_Input(10, 245, 355, 25, "Filename:");
o->callback((Fl_Callback*)cb_fileName);