Add option to disable blinking alert buttons.
authorRobin Gareus <robin@gareus.org>
Sun, 26 Mar 2017 19:42:01 +0000 (21:42 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 26 Mar 2017 19:42:01 +0000 (21:42 +0200)
gtk2_ardour/ardour_ui.cc
gtk2_ardour/monitor_section.cc
gtk2_ardour/rc_option_editor.cc
gtk2_ardour/ui_config_vars.h

index 1cf2d3f79f13dc8dffd8e4a3c74c38606e2ae684..67c92c24b02ef8af709535534f53f666ab75e23b 100644 (file)
@@ -2616,11 +2616,15 @@ void
 ARDOUR_UI::blink_handler (bool blink_on)
 {
        transport_rec_enable_blink (blink_on);
-       solo_blink (blink_on);
        sync_blink (blink_on);
+
+       if (!UIConfiguration::instance().get_blink_alert_indicators()) {
+               blink_on = true;
+       }
+       error_blink (blink_on);
+       solo_blink (blink_on);
        audition_blink (blink_on);
        feedback_blink (blink_on);
-       error_blink (blink_on);
 }
 
 void
index ec591a571af016437b5e1586dc3bffc5c07d46c6..de1d9504c02fec9c1089b033c0497a6d90769af7 100644 (file)
@@ -1178,6 +1178,10 @@ MonitorSection::map_state ()
 void
 MonitorSection::do_blink (bool onoff)
 {
+       if (!UIConfiguration::instance().get_blink_alert_indicators ()) {
+               onoff = true;
+       }
+
        solo_blink (onoff);
        audition_blink (onoff);
 }
index 5af921c9c75ae4f06f8fc66e1e36632e24f6d5ca..d2bcf3ca57540170330e1890375d00b3a37ea7d9 100644 (file)
@@ -3562,6 +3562,14 @@ RCOptionEditor::RCOptionEditor ()
                                sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_blink_rec_arm)
                                ));
 
+       add_option (_("Appearance"),
+                       new BoolOption (
+                               "blink-alert-indicators",
+                               _("Blink Alert Indicators"),
+                               sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_blink_alert_indicators),
+                               sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_blink_alert_indicators)
+                               ));
+
 
 #ifndef __APPLE__
        /* font scaling does nothing with GDK/Quartz */
index af82c18761445ff06df07722a384546f5dcf0d1e..74fc57874be5577fddd18fa235948814cf446e52 100644 (file)
@@ -22,6 +22,7 @@ UI_CONFIG_VARIABLE (std::string, ui_rc_file, "ui-rc-file", "clearlooks.rc")
 UI_CONFIG_VARIABLE (std::string, color_file, "color-file", "dark")
 UI_CONFIG_VARIABLE (bool, flat_buttons, "flat-buttons", false)
 UI_CONFIG_VARIABLE (bool, blink_rec_arm, "blink-rec-arm", false)
+UI_CONFIG_VARIABLE (bool, blink_alert_indicators, "blink-alert-indicators", true)
 UI_CONFIG_VARIABLE (float, waveform_gradient_depth, "waveform-gradient-depth", 0)
 UI_CONFIG_VARIABLE (float, timeline_item_gradient_depth, "timeline-item-gradient-depth", 0.5)
 UI_CONFIG_VARIABLE (bool, all_floating_windows_are_dialogs, "all-floating-windows-are-dialogs", false)