From 41f37613ec6a14fb8b3357e2dc0323116bf8439b Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 13 Dec 2022 18:37:48 +0100 Subject: =?UTF-8?q?Derive=20Fl=5FZenity=5FNative=5FFile=5FChooser=5FDriver?= =?UTF-8?q?=20from=20Fl=5FKdialog=5FNative=5F=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also add Fl::option(OPTION_FNFC_USES_ZENITY) --- src/Fl.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index 15eee143e..ee16805d9 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1920,6 +1920,8 @@ bool Fl::option(Fl_Option opt) opt_prefs.get("ShowZoomFactor", tmp, 1); // default: on options_[OPTION_SHOW_SCALING] = tmp; + opt_prefs.get("UseZenity", tmp, 1); // default: on + options_[OPTION_FNFC_USES_ZENITY] = tmp; } { // next, check the user preferences // override system options only, if the option is set ( >= 0 ) @@ -1944,6 +1946,8 @@ bool Fl::option(Fl_Option opt) opt_prefs.get("ShowZoomFactor", tmp, -1); if (tmp >= 0) options_[OPTION_SHOW_SCALING] = tmp; + opt_prefs.get("UseZenity", tmp, -1); + if (tmp >= 0) options_[OPTION_FNFC_USES_ZENITY] = tmp; } { // now, if the developer has registered this app, we could ask for per-application preferences } -- cgit v1.2.3