diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-13 18:37:48 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-16 16:21:23 +0100 |
| commit | 41f37613ec6a14fb8b3357e2dc0323116bf8439b (patch) | |
| tree | b6677826b5eadc6571f2ffd582d9a2d858172102 /src/Fl.cxx | |
| parent | 576271fb04e1c2f9ba1f95c0399fef2f73af3b06 (diff) | |
Derive Fl_Zenity_Native_File_Chooser_Driver from Fl_Kdialog_Native_…
Also add Fl::option(OPTION_FNFC_USES_ZENITY)
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |
