diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-02 16:16:36 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-02 16:16:36 +0200 |
commit | 538a569d0b5ec9ba6aa4dc92a2880334f2fcae50 (patch) | |
tree | 053fe9210f7508bb88d73b5d264d2624d179a20b /gtk2_ardour/option_editor.cc | |
parent | 9ecdb765aad7f8236fd0749a23ff961b5ad9c03a (diff) |
add a special bool option that prevents redrawing
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 02a930aa7f..ef09b22898 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -28,6 +28,7 @@ #include "ardour/dB.h" #include "ardour/session.h" +#include "public_editor.h" #include "option_editor.h" #include "gui_thread.h" #include "i18n.h" @@ -139,6 +140,18 @@ BoolOption::toggled () _set (_button->get_active ()); } +RouteDisplayBoolOption::RouteDisplayBoolOption (string const & i, string const & n, sigc::slot<bool> g, sigc::slot<bool, bool> s) + : BoolOption (i, n, g, s) +{ +} + +void +RouteDisplayBoolOption::toggled () +{ + DisplaySuspender ds; + BoolOption::toggled (); +} + EntryOption::EntryOption (string const & i, string const & n, sigc::slot<string> g, sigc::slot<bool, string> s) : Option (i, n), _get (g), |