Open route group dialogue on Ctrl-right-click rather than Ctrl-left-click on a group tab to be more consistent with the rest of Ardour (#4466).
git-svn-id: svn://localhost/ardour2/branches/3.0@10638 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f12701fda2
commit
e1905ccbf6
|
@ -134,11 +134,17 @@ GroupTabs::on_button_press_event (GdkEventButton* ev)
|
|||
} else if (ev->button == 3) {
|
||||
|
||||
RouteGroup* g = t ? t->group : 0;
|
||||
|
||||
if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier) && g) {
|
||||
/* edit */
|
||||
RouteGroupDialog d (g, false);
|
||||
d.do_run ();
|
||||
} else {
|
||||
Menu* m = get_menu (g);
|
||||
if (m) {
|
||||
m->popup (ev->button, ev->time);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -183,19 +189,8 @@ GroupTabs::on_button_release_event (GdkEventButton* ev)
|
|||
if (!_drag_moved) {
|
||||
|
||||
if (_dragging->group) {
|
||||
|
||||
if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
|
||||
|
||||
/* edit */
|
||||
RouteGroupDialog d (_dragging->group, false);
|
||||
d.do_run ();
|
||||
|
||||
} else {
|
||||
|
||||
/* toggle active state */
|
||||
_dragging->group->set_active (!_dragging->group->is_active (), this);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user