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.fl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/Fl_FileChooser.fl') diff --git a/src/Fl_FileChooser.fl b/src/Fl_FileChooser.fl index 0ac411656..0074a9c1a 100644 --- a/src/Fl_FileChooser.fl +++ b/src/Fl_FileChooser.fl @@ -23,7 +23,7 @@ window->hide();} open code3 {\#include } modal visible } { Fl_Browser fileList { - callback {fileListCB();} selected + callback {fileListCB();} private xywh {10 45 355 180} type Hold resizable hotspot code0 {\#include } class Fl_FileBrowser @@ -32,13 +32,16 @@ window->hide();} open label Cancel callback {fileList->deselect(); fileName->value(""); -window->hide();} +window->hide();} selected private xywh {285 280 80 25} + code0 {o->label(fl_cancel);} } Fl_Return_Button okButton { label OK callback {window->hide();} - private xywh {205 280 75 25} + private xywh {200 280 75 25} + code0 {\#include } + code1 {okButton->label(fl_ok);} } Fl_Input fileName { label {Filename:} -- cgit v1.2.3