diff options
author | Robin Gareus <robin@gareus.org> | 2017-07-15 20:50:26 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-16 16:58:00 +0200 |
commit | 5aecfc5acb41f6d05804a88b99eec159e96a66c9 (patch) | |
tree | fbe3b294fc30297e479d4c776e5fc74cb033dd34 /gtk2_ardour/automation_controller.h | |
parent | 69ecb0db70996a5c1092efe712d195ffcff5e8b1 (diff) |
Remove Timers to watch Controllable values
Depend on Changed() signals alone, which are usually much less frequent
than rapid-timer events.
As side-effect we now need to make the widgets insensitive when
playing automation. Previously the user could not change the value because
the Timer periodically reset it.
Diffstat (limited to 'gtk2_ardour/automation_controller.h')
-rw-r--r-- | gtk2_ardour/automation_controller.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_controller.h b/gtk2_ardour/automation_controller.h index 170e49ae07..7c3641b2df 100644 --- a/gtk2_ardour/automation_controller.h +++ b/gtk2_ardour/automation_controller.h @@ -69,7 +69,8 @@ public: Gtk::Adjustment* adjustment() { return _adjustment; } Gtk::Widget* widget() { return _widget; } - void display_effective_value(); + void display_effective_value (); + void automation_state_changed (); void value_adjusted(); void stop_updating (); @@ -93,7 +94,7 @@ private: boost::shared_ptr<ARDOUR::AutomationControl> _controllable; Gtk::Adjustment* _adjustment; sigc::connection _screen_update_connection; - PBD::ScopedConnection _changed_connection; + PBD::ScopedConnectionList _changed_connections; bool _ignore_change; }; |