From 03b112773d646fec27265fb21ee9feea671b6fef Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 3 Aug 2001 18:46:57 +0000 Subject: 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 --- src/Fl_FileChooser.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Fl_FileChooser.cxx') 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); -- cgit v1.2.3