mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Revert "consistent use of context-menu popups"
This reverts commit b3722f7063.
In some cases ardour shows context-menu on right-mouse-button
release. In this case selecting a menu-entry should happen
with the left-mouse button (or any button?!)
Using ev->button is only correct if the menu is temporary and only
visible while the button is held, button release then activates the
menu-item.
This needs further work, in some cases allowing any button (0) to work
makes sense and overall consistency needs to be improved.
Different places use different strategies for context-menus which
don't always match the button used in the event-handler.
This is a hotfix (to make TAV context menus work again with left-click)
This commit is contained in:
parent
55b8b44889
commit
962e7a214a
13 changed files with 28 additions and 28 deletions
|
|
@ -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(ev->button, ev->time);
|
||||
menu->popup(1, 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(ev->button, ev->time);
|
||||
menu->popup(1, ev->time);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue