diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2015-02-15 18:26:15 +0000 |
---|---|---|
committer | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2015-03-09 19:17:52 +0000 |
commit | 99e15d94025b7ce9046b3e8d4c4e7b2e1635df7a (patch) | |
tree | cfc1bb06c286e304e390f3ced57eac2e5fbd5645 /gtk2_ardour/main_clock.cc | |
parent | 760e00b028f35937abc72695a02838372eb275a7 (diff) |
Make left-click on tempo/meter in main clock edit current tempo/meter
Diffstat (limited to 'gtk2_ardour/main_clock.cc')
-rw-r--r-- | gtk2_ardour/main_clock.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gtk2_ardour/main_clock.cc b/gtk2_ardour/main_clock.cc index bbb3d5af4e..f90599de13 100644 --- a/gtk2_ardour/main_clock.cc +++ b/gtk2_ardour/main_clock.cc @@ -116,3 +116,24 @@ MainClock::insert_new_meter () PublicEditor::instance().mouse_add_new_meter_event (absolute_time ()); } +bool +MainClock::on_button_press_event (GdkEventButton *ev) +{ + if (ev->button == 1) { + if (mode() == BBT) { + if (is_lower_layout_click(ev->y)) { + if (is_right_layout_click(ev->x)) { + // meter on the right + edit_current_meter(); + } else { + // tempo on the left + edit_current_tempo(); + } + return true; + } + } + } + + return AudioClock::on_button_press_event (ev); +} + |