mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
more changes to Bindings, Keyboard APIs
This commit is contained in:
parent
67e19c177f
commit
949163f806
23 changed files with 615 additions and 467 deletions
|
|
@ -66,12 +66,12 @@ Manager::register_window (ProxyBase* info)
|
|||
if (!info->menu_name().empty()) {
|
||||
|
||||
if (!window_actions) {
|
||||
window_actions = Gtkmm2ext::Actions.create_action_group (X_("Window"));
|
||||
window_actions = window_action_map.create_action_group (X_("Window"));
|
||||
}
|
||||
|
||||
info->set_action (Gtkmm2ext::Actions.register_toggle_action (window_actions,
|
||||
info->action_name().c_str(), info->menu_name().c_str(),
|
||||
sigc::bind (sigc::mem_fun (*this, &Manager::toggle_window), info)));
|
||||
info->set_action (window_action_map.register_toggle_action (window_actions,
|
||||
info->action_name().c_str(), info->menu_name().c_str(),
|
||||
sigc::bind (sigc::mem_fun (*this, &Manager::toggle_window), info)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ void
|
|||
Manager::toggle_window (ProxyBase* proxy)
|
||||
{
|
||||
|
||||
Glib::RefPtr<Gtk::Action> act = Gtkmm2ext::Actions.find_action (string_compose ("%1/%2", window_actions->get_name(), proxy->action_name()));
|
||||
Glib::RefPtr<Gtk::Action> act = window_action_map.find_action (string_compose ("%1/%2", window_actions->get_name(), proxy->action_name()));
|
||||
if (!act) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue