From c0237a1f045d14a54fe9a999543cb83385ac7dd6 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 31 Dec 2019 18:30:04 +0100 Subject: Limiting file access for Fl_Preferences. Added Fl_Preferences::file_access() and various flags that make it possible to limit or completely deny file access to the preferences system, either for the core library or for the application or both. --- src/Fl_File_Chooser.fl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_File_Chooser.fl') diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl index fca0a32f3..4cbf3a9fc 100644 --- a/src/Fl_File_Chooser.fl +++ b/src/Fl_File_Chooser.fl @@ -70,7 +70,7 @@ class FL_EXPORT Fl_File_Chooser {open } Function {Fl_File_Chooser(const char *d, const char *p, int t, const char *title)} {} { code {if (!prefs_) { - prefs_ = new Fl_Preferences(Fl_Preferences::USER, "fltk.org", "filechooser"); + prefs_ = new Fl_Preferences(Fl_Preferences::CORE_USER, "fltk.org", "filechooser"); }} {} code {Fl_Group *prev_current = Fl_Group::current();} {} Fl_Window window { -- cgit v1.2.3