diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-08-05 10:57:00 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:23 -0500 |
commit | 6e5581253559fee9bf82fe3ba52ab2db07d3bed2 (patch) | |
tree | f73b0e9f58881411a22e3fd886b83039de36e21b /gtk2_ardour/ardour_ui.cc | |
parent | 36023db8aa63d59d475c137e6b394f30e8cde1b7 (diff) |
use Bindings API for binding replacement
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 9f886ed512..fec3463dbb 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -587,19 +587,21 @@ ARDOUR_UI::post_engine () /* this is the first point at which all the keybindings are available */ if (ARDOUR_COMMAND_LINE::show_key_actions) { - vector<string> names; - vector<string> paths; - vector<string> tooltips; - vector<string> keys; - vector<AccelKey> bindings; - - ActionManager::get_all_actions (names, paths, tooltips, keys, bindings); - - vector<string>::iterator n; - vector<string>::iterator k; - vector<string>::iterator p; - for (n = names.begin(), k = keys.begin(), p = paths.begin(); n != names.end(); ++n, ++k, ++p) { - cout << "Action: '" << (*n) << "' bound to '" << (*k) << "' Path: '" << (*p) << "'" << endl; + + for (map<string,Bindings*>::const_iterator mb = Bindings::bindings_for_state.begin(); mb != Bindings::bindings_for_state.end(); ++mb) { + + vector<string> names; + vector<string> paths; + vector<string> keys; + + mb->second->get_all_actions (names, paths, keys); + + vector<string>::iterator n; + vector<string>::iterator k; + vector<string>::iterator p; + for (n = names.begin(), k = keys.begin(), p = paths.begin(); n != names.end(); ++n, ++k, ++p) { + cout << "Action: '" << (*n) << "' bound to '" << (*k) << "' Path: '" << (*p) << "'" << endl; + } } halt_connection.disconnect (); |