summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-28 04:59:45 +0100
committerRobin Gareus <robin@gareus.org>2017-02-28 05:01:17 +0100
commit5c4a2025f12038ef52efaedf8e71a22d9bae8215 (patch)
tree7efcc403b062ea641d90f3e732cc79dfde84e583 /gtk2_ardour/automation_controller.h
parent1071c0e788cb8b87d9fd034862892bd30ab26ab6 (diff)
Fix touching mute automation (mostly)
controllable->set_value() from GUI context will eventually queue a session-rt command. By the time the realtime command runs, the controllable needs to be in "touch" mode. The AutomationController "toggle" UI worked around this by directly using the underlying API (ignoring slaved-controls and ignoring groups). The RouteUI's GUI wasn't able to write mute-automation at all. This commit is a compromise: press + hold (touch) + release button. (it may need further special-casing for _desc.toggled in AutomationControl::actually_set_value(), also undoing automation-writes is currently not working correctly)
Diffstat (limited to 'gtk2_ardour/automation_controller.h')
-rw-r--r--gtk2_ardour/automation_controller.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_controller.h b/gtk2_ardour/automation_controller.h
index 126383d517..7c0e2139d2 100644
--- a/gtk2_ardour/automation_controller.h
+++ b/gtk2_ardour/automation_controller.h
@@ -86,7 +86,8 @@ private:
void start_touch();
void end_touch();
- void toggled();
+ bool button_press(GdkEventButton*);
+ bool button_release(GdkEventButton*);
void run_note_select_dialog();
void set_ratio(double ratio);