From 538a569d0b5ec9ba6aa4dc92a2880334f2fcae50 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 2 Sep 2014 16:16:36 +0200 Subject: add a special bool option that prevents redrawing --- gtk2_ardour/option_editor.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gtk2_ardour/option_editor.cc') 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 g, sigc::slot s) + : BoolOption (i, n, g, s) +{ +} + +void +RouteDisplayBoolOption::toggled () +{ + DisplaySuspender ds; + BoolOption::toggled (); +} + EntryOption::EntryOption (string const & i, string const & n, sigc::slot g, sigc::slot s) : Option (i, n), _get (g), -- cgit v1.2.3