Add AudioClock::on() method as convenience method for serialization
authorTim Mayberry <mojofunk@gmail.com>
Sun, 28 Aug 2016 22:57:43 +0000 (08:57 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:36:55 +0000 (09:36 +1000)
gtk2_ardour/audio_clock.h

index 3336f9e2bdb3b2a4829efd9295c3793f1de983ba..f76e9db02da286480b3112eda6b16ac5efe04ed1 100644 (file)
@@ -58,6 +58,7 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
        Mode mode() const { return _mode; }
        void set_off (bool yn);
        bool off() const { return _off; }
+       bool on() const { return !_off; }
        void set_widget_name (const std::string& name);
        void set_active_state (Gtkmm2ext::ActiveState s);
        void set_editable (bool yn);