summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-03-16 02:24:57 +0100
committerRobin Gareus <robin@gareus.org>2017-03-16 02:36:48 +0100
commitb3722f7063699fafd0421d504e05a7300c70e0ec (patch)
tree9d0072c00439e0ac61cb9e44967653fcde8ae658 /gtk2_ardour/automation_controller.cc
parente5d48a8544d95bd1fdf48b4805266bdda47b5acf (diff)
consistent use of context-menu popups
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r--gtk2_ardour/automation_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc
index 21e6b429cb..0005589100 100644
--- a/gtk2_ardour/automation_controller.cc
+++ b/gtk2_ardour/automation_controller.cc
@@ -296,7 +296,7 @@ AutomationController::on_button_release(GdkEventButton* ev)
MenuList& items = menu->items();
items.push_back(MenuElem(_("Select Note..."),
sigc::mem_fun(*this, &AutomationController::run_note_select_dialog)));
- menu->popup(1, ev->time);
+ menu->popup(ev->button, ev->time);
return true;
} else if (desc.unit == ARDOUR::ParameterDescriptor::HZ) {
Gtk::Menu* menu = manage(new Menu());
@@ -320,7 +320,7 @@ AutomationController::on_button_release(GdkEventButton* ev)
(double)beats)));
}
}
- menu->popup(1, ev->time);
+ menu->popup(ev->button, ev->time);
return true;
}