summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser.fl
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_File_Chooser.fl')
-rw-r--r--src/Fl_File_Chooser.fl14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl
index cc8d0fa6c..50ee3f0cd 100644
--- a/src/Fl_File_Chooser.fl
+++ b/src/Fl_File_Chooser.fl
@@ -173,8 +173,7 @@ value(d);
type(t);
int e;
prefs_.get("preview", e, 1);
-preview(e);} {selected
- }
+preview(e);} {}
}
Function {~Fl_File_Chooser()} {open
} {
@@ -208,6 +207,15 @@ data_ = d;} {}
} {
code {return (fileList->filter());} {}
}
+ Function {filter_value()} {return_type int
+ } {
+ code {return showChoice->value();} {}
+ }
+ Function {filter_value(int f)} {return_type void
+ } {
+ code {showChoice->value(f);
+showChoiceCB();} {}
+ }
Function {hide()} {return_type void
} {
code {window->hide();} {}
@@ -300,6 +308,8 @@ else
}
decl {static const char *all_files_label;} {public
}
+ decl {static const char *custom_filter_label;} {selected public
+ }
decl {static const char *existing_file_label;} {public
}
decl {static const char *favorites_label;} {public