summaryrefslogtreecommitdiff
path: root/src/Fl_Native_File_Chooser_FLTK.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2010-01-14 23:08:06 +0000
committerGreg Ercolano <erco@seriss.com>2010-01-14 23:08:06 +0000
commitebfb80908ca91531b96510d6f6446566a72921fd (patch)
tree80153b9031ccc036697aa1cc5cbe42a1e53b9edb /src/Fl_Native_File_Chooser_FLTK.cxx
parent4e08397c9406d5fcabff6e8dff2ad0ca4345aef4 (diff)
Checked in on Manolo's behalf; FNFC.patch applied from STR#2298
to include a 'Show Hidden Files' checkbox for linux browser. Small addition to Fl_File_Chooser to support this. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Native_File_Chooser_FLTK.cxx')
-rw-r--r--src/Fl_Native_File_Chooser_FLTK.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Fl_Native_File_Chooser_FLTK.cxx b/src/Fl_Native_File_Chooser_FLTK.cxx
index 357e4b949..ee75d0ebf 100644
--- a/src/Fl_Native_File_Chooser_FLTK.cxx
+++ b/src/Fl_Native_File_Chooser_FLTK.cxx
@@ -71,16 +71,9 @@ Fl_Native_File_Chooser::Fl_Native_File_Chooser(int val) {
Fl_Group::current(w); // adds a "Show hidden files" check button in _file_chooser's window
show_hidden = new Fl_Check_Button(b->x() + b->w() + 10, b->y(), 145, b->h(), "Show hidden files");
show_hidden->callback((Fl_Callback*)show_hidden_cb, this);
- // This is a hack to bypass the fact that fileList is a private member of _file_chooser.
- // Find it as 1st child of 2nd child of _file_chooser's window.
- Fl_Group *g = (Fl_Group *)w->array()[1];
- my_fileList = (Fl_File_Browser *)g->array()[0];
+ my_fileList = _file_chooser->browser();
_old_dir = 0; // to detect directory changes
prev_filtervalue = _file_chooser->filter_value(); // to detect filter changes
- // Hack to get _file_chooser's showChoice widget.
- // Find it as 1st child of 1st child of _file_chooser's window.
- g = (Fl_Group *)w->array()[0];
- showChoice = (Fl_Choice *)g->array()[0];
}
/**