rude solo blinks again
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 14 Nov 2011 17:52:38 +0000 (17:52 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 14 Nov 2011 17:52:38 +0000 (17:52 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10588 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour_ui2.cc

index 6cbbf32b2abc5afdb6415514263c25304249ae9f..41f56007680754c69ebcf0a2ef74d8740bd2d7fa 100644 (file)
@@ -511,13 +511,12 @@ ARDOUR_UI::solo_blink (bool onoff)
 
        if (_session->soloing() || _session->listening()) {
                if (onoff) {
-                       solo_alert_button.set_state (STATE_ACTIVE);
+                       solo_alert_button.set_active (true);
                } else {
-                       solo_alert_button.set_state (STATE_NORMAL);
+                       solo_alert_button.set_active (false);
                }
        } else {
                solo_alert_button.set_active (false);
-               solo_alert_button.set_state (STATE_NORMAL);
        }
 }
 
@@ -526,7 +525,7 @@ ARDOUR_UI::sync_blink (bool onoff)
 {
        if (_session == 0 || !_session->config.get_external_sync()) {
                /* internal sync */
-               sync_button.unset_active_state ();
+               sync_button.set_active (false);
                return;
        }
 
@@ -534,13 +533,13 @@ ARDOUR_UI::sync_blink (bool onoff)
                /* not locked, so blink on and off according to the onoff argument */
 
                if (onoff) {
-                       sync_button.set_active_state (Gtkmm2ext::Active); // "-active"
+                       sync_button.set_active (true);
                } else {
-                       sync_button.unset_active_state (); // normal
+                       sync_button.set_active (false);
                }
        } else {
                /* locked */
-                 sync_button.set_active_state (Gtkmm2ext::Active); // "-active"
+               sync_button.set_active (true);
        }
 }