+ } else if (p == "show-track-meters") {
+ if (editor) editor->toggle_meter_updating();
+ } else if (p == "primary-clock-delta-edit-cursor") {
+ if (UIConfiguration::instance().get_primary_clock_delta_edit_cursor()) {
+ primary_clock->set_is_duration (true);
+ primary_clock->set_editable (false);
+ primary_clock->set_widget_name ("transport delta");
+ } else {
+ primary_clock->set_is_duration (false);
+ primary_clock->set_editable (true);
+ primary_clock->set_widget_name ("transport");
+ }
+ } else if (p == "secondary-clock-delta-edit-cursor") {
+ if (UIConfiguration::instance().get_secondary_clock_delta_edit_cursor()) {
+ secondary_clock->set_is_duration (true);
+ secondary_clock->set_editable (false);
+ secondary_clock->set_widget_name ("secondary delta");
+ } else {
+ secondary_clock->set_is_duration (false);
+ secondary_clock->set_editable (true);
+ secondary_clock->set_widget_name ("secondary");
+ }
+ } else if (p == "super-rapid-clock-update") {
+ if (_session) {
+ stop_clocking ();
+ start_clocking ();
+ }
+ } else if (p == "use-tooltips") {
+ /* this doesn't really belong here but it has to go somewhere */
+ if (UIConfiguration::instance().get_use_tooltips()) {
+ Gtkmm2ext::enable_tooltips ();
+ } else {
+ Gtkmm2ext::disable_tooltips ();
+ }
+ } else if (p == "waveform-gradient-depth") {
+ ArdourCanvas::WaveView::set_global_gradient_depth (UIConfiguration::instance().get_waveform_gradient_depth());
+ } else if (p == "show-mini-timeline") {
+ repack_transport_hbox ();
+ } else if (p == "show-toolbar-recpunch") {
+ repack_transport_hbox ();
+ } else if (p == "show-toolbar-monitoring") {
+ repack_transport_hbox ();
+ } else if (p == "show-toolbar-selclock") {
+ repack_transport_hbox ();
+ } else if (p == "show-editor-meter") {
+ repack_transport_hbox ();
+ } else if (p == "show-secondary-clock") {
+ update_clock_visibility ();
+ } else if (p == "waveform-scale") {
+ ArdourCanvas::WaveView::set_global_logscaled (UIConfiguration::instance().get_waveform_scale() == Logarithmic);
+ } else if (p == "widget-prelight") {
+ CairoWidget::set_widget_prelight (UIConfiguration::instance().get_widget_prelight());
+ } else if (p == "waveform-shape") {
+ ArdourCanvas::WaveView::set_global_shape (UIConfiguration::instance().get_waveform_shape() == Rectified
+ ? ArdourCanvas::WaveView::Rectified : ArdourCanvas::WaveView::Normal);
+ } else if (p == "show-waveform-clipping") {
+ ArdourCanvas::WaveView::set_global_show_waveform_clipping (UIConfiguration::instance().get_show_waveform_clipping());
+ } else if (p == "waveform-cache-size") {
+ /* GUI option has units of megabytes; image cache uses units of bytes */
+ ArdourCanvas::WaveView::set_image_cache_size (UIConfiguration::instance().get_waveform_cache_size() * 1048576);
+ } else if (p == "use-wm-visibility") {
+ VisibilityTracker::set_use_window_manager_visibility (UIConfiguration::instance().get_use_wm_visibility());
+ } else if (p == "action-table-columns") {
+ const uint32_t cols = UIConfiguration::instance().get_action_table_columns ();
+ for (int i = 0; i < 9; ++i) {
+ const int col = i / 2;
+ if (cols & (1<<col)) {
+ action_script_call_btn[i].show();
+ } else {
+ action_script_call_btn[i].hide();
+ }
+ }
+ } else if (p == "layered-record-mode") {
+ layered_button.set_active (_session->config.get_layered_record_mode ());
+ } else if (p == "show-waveform-clipping") {
+ ArdourCanvas::WaveView::set_global_show_waveform_clipping (UIConfiguration::instance().get_show_waveform_clipping());
+ } else if (p == "waveform-gradient-depth") {
+ ArdourCanvas::WaveView::set_global_gradient_depth (UIConfiguration::instance().get_waveform_gradient_depth());
+ } else if (p == "flat-buttons") {
+ bool flat = UIConfiguration::instance().get_flat_buttons();
+ if (ArdourButton::flat_buttons () != flat) {
+ ArdourButton::set_flat_buttons (flat);
+ /* force a redraw */
+ gtk_rc_reset_styles (gtk_settings_get_default());