summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--fluid/Fl_Type.cxx8
-rw-r--r--src/fl_file_dir.cxx12
3 files changed, 12 insertions, 10 deletions
diff --git a/CHANGES b/CHANGES
index 516868495..cba1a6f51 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
CHANGES IN FLTK 1.1.0rc1
+ - fl_file_chooser() didn't highlight the requested file
+ the second time the file chooser dialog was shown.
- Fixed rendering of Fl_Light_Button with the plastic
scheme.
- Fixed a bug in the MacOS font enumeration code.
diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx
index fccc699d9..a65defc73 100644
--- a/fluid/Fl_Type.cxx
+++ b/fluid/Fl_Type.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Type.cxx,v 1.6.2.6.2.6 2002/04/27 18:34:11 easysw Exp $"
+// "$Id: Fl_Type.cxx,v 1.6.2.6.2.7 2002/04/28 08:42:32 easysw Exp $"
//
// Widget type code for the Fast Light Tool Kit (FLTK).
//
@@ -139,8 +139,8 @@ void Widget_Browser::item_draw(void *v, int x, int y, int, int) const {
x += 3 + 16 + l->level * 10;
if (l->new_selected) fl_color(fl_contrast(FL_BLACK,FL_SELECTION_COLOR));
else fl_color(FL_BLACK);
- if (l->is_public() == 0) unlock_pixmap.draw(x - 16, y);
- else if (l->is_public() > 0) lock_pixmap.draw(x - 16, y);
+ if (l->is_public() == 0) lock_pixmap.draw(x - 16, y);
+ else if (l->is_public() > 0) unlock_pixmap.draw(x - 16, y);
if (l->is_parent()) {
if (!l->next || l->next->level <= l->level) {
if (l->open_!=(l==pushedtitle)) {
@@ -682,5 +682,5 @@ void Fl_Type::read_property(const char *c) {
int Fl_Type::read_fdesign(const char*, const char*) {return 0;}
//
-// End of "$Id: Fl_Type.cxx,v 1.6.2.6.2.6 2002/04/27 18:34:11 easysw Exp $".
+// End of "$Id: Fl_Type.cxx,v 1.6.2.6.2.7 2002/04/28 08:42:32 easysw Exp $".
//
diff --git a/src/fl_file_dir.cxx b/src/fl_file_dir.cxx
index 56fbf9cfe..c1d0f6d4f 100644
--- a/src/fl_file_dir.cxx
+++ b/src/fl_file_dir.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_file_dir.cxx,v 1.1.2.8 2002/04/24 12:14:57 easysw Exp $"
+// "$Id: fl_file_dir.cxx,v 1.1.2.9 2002/04/28 08:42:33 easysw Exp $"
//
// File chooser widget for the Fast Light Tool Kit (FLTK).
//
@@ -53,6 +53,10 @@ char* fl_file_chooser(const char* message, const char* pat, const char* fname)
fc = new Fl_File_Chooser(fname, pat, Fl_File_Chooser::CREATE, message);
fc->callback(callback, 0);
} else {
+ fc->type(Fl_File_Chooser::CREATE);
+ fc->filter(pat);
+ fc->label(message);
+
if (!fname || !*fname) {
if (fc->filter() != pat && (!pat || !fc->filter() ||
strcmp(pat, fc->filter())) && fc->value()) {
@@ -77,10 +81,6 @@ char* fl_file_chooser(const char* message, const char* pat, const char* fname)
}
else
fc->value(fname);
-
- fc->type(Fl_File_Chooser::CREATE);
- fc->filter(pat);
- fc->label(message);
}
fc->show();
@@ -127,5 +127,5 @@ char* fl_dir_chooser(const char* message, const char* fname)
//
-// End of "$Id: fl_file_dir.cxx,v 1.1.2.8 2002/04/24 12:14:57 easysw Exp $".
+// End of "$Id: fl_file_dir.cxx,v 1.1.2.9 2002/04/28 08:42:33 easysw Exp $".
//