summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-28 17:03:40 +0100
committerRobin Gareus <robin@gareus.org>2015-12-28 17:23:45 +0100
commit46e479038def8fe37be9590636d30ef80067bc99 (patch)
tree6a482e13f80937407be29235701685789866c2fe /gtk2_ardour
parent9283e974358f5cd2646f69972bada8cab260e911 (diff)
plugin-sidebar: select on right-click (before context-menu)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/mixer_ui.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc
index 51659b55e1..d4c37c84f8 100644
--- a/gtk2_ardour/mixer_ui.cc
+++ b/gtk2_ardour/mixer_ui.cc
@@ -2371,6 +2371,16 @@ bool
Mixer_UI::plugin_row_button_press (GdkEventButton *ev)
{
if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 3) ) {
+ TreeModel::Path path;
+ TreeViewColumn* column;
+ int cellx, celly;
+ if (favorite_plugins_display.get_path_at_pos ((int)ev->x, (int)ev->y, path, column, cellx, celly)) {
+ Glib::RefPtr<Gtk::TreeView::Selection> selection = favorite_plugins_display.get_selection();
+ if (selection) {
+ selection->unselect_all();
+ selection->select(path);
+ }
+ }
popup_note_context_menu (ev);
}
return false;