add control for buggy gradient option
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 28 May 2015 15:46:01 +0000 (11:46 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 28 May 2015 16:46:43 +0000 (12:46 -0400)
gtk2_ardour/rc_option_editor.cc

index d9a71a783e9e82782cbe88396d2f847638291e30..9efd73ed288ebc17e895c59b2ad3509979a9e13f 100644 (file)
@@ -2644,6 +2644,16 @@ RCOptionEditor::RCOptionEditor ()
 
        /* INTERFACE */
 
+       BoolOption* bgo = new BoolOption (
+               "buggy-gradients",
+               _("Possibly improve slow graphical performance"),
+               sigc::mem_fun (*_ui_config, &UIConfiguration::get_buggy_gradients),
+               sigc::mem_fun (*_ui_config, &UIConfiguration::set_buggy_gradients)
+               );
+
+       Gtkmm2ext::UI::instance()->set_tip (bgo->tip_widget(), string_compose (_("This requires restarting %1 before having an effect"), PROGRAM_NAME));
+       add_option (S_("Preferences|GUI"), bgo);
+
        add_option (S_("Preferences|GUI"),
             new BoolOption (
                     "widget-prelight",