summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-02 17:25:10 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-02 17:25:10 +0100
commitb74099c5fdb3fcbe7a6b89fc05069e219f7fb36c (patch)
tree4977b4ee5324f96576c03e74345145738ae86db4 /src/Fl.cxx
parenta76229972e1c502690cdf584f157db2ba612d5c2 (diff)
Add OPTION_SIMPLE_ZOOM_SHORTCUT to fine tune zoom-in shortcut
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index dcf4be3bc..43115cc6a 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -2010,6 +2010,8 @@ bool Fl::option(Fl_Option opt)
options_[OPTION_SHOW_SCALING] = tmp;
opt_prefs.get("UseZenity", tmp, 1); // default: on
options_[OPTION_FNFC_USES_ZENITY] = tmp;
+ opt_prefs.get("SimpleZoomShortcut", tmp, 0); // default: off
+ options_[OPTION_SIMPLE_ZOOM_SHORTCUT] = tmp;
}
{ // next, check the user preferences
// override system options only, if the option is set ( >= 0 )
@@ -2036,6 +2038,8 @@ bool Fl::option(Fl_Option opt)
if (tmp >= 0) options_[OPTION_SHOW_SCALING] = tmp;
opt_prefs.get("UseZenity", tmp, -1);
if (tmp >= 0) options_[OPTION_FNFC_USES_ZENITY] = tmp;
+ opt_prefs.get("SimpleZoomShortcut", tmp, -1);
+ if (tmp >= 0) options_[OPTION_SIMPLE_ZOOM_SHORTCUT] = tmp;
}
{ // now, if the developer has registered this app, we could ask for per-application preferences
}