summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2017-04-28 08:19:20 -0700
committerLen Ovens <len@ovenwerks.net>2017-04-28 08:19:20 -0700
commit620f3b9358c1c5c496fa60a835d551e93ab34cb8 (patch)
treee87ad2d7880b6f6353b73cabc5a797f5a95afcf1 /gtk2_ardour/ardour_ui.cc
parentcbe1f5d3956f878caeb6cb2aa1dc9cf97e773116 (diff)
Change actions to -A and use -b to output keybindings
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc19
1 files changed, 17 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 32a6d9f1f6..738898d2ef 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -688,6 +688,21 @@ ARDOUR_UI::post_engine ()
*/
if (ARDOUR_COMMAND_LINE::show_key_actions) {
+ stringstream sstr;
+ Bindings::save_all_bindings_as_html (sstr);
+
+ if (sstr.str().empty()) {
+ return;
+ }
+ cout << sstr.str().c_str();
+
+ halt_connection.disconnect ();
+ AudioEngine::instance()->stop ();
+ exit (0);
+
+ }
+
+ if (ARDOUR_COMMAND_LINE::show_actions) {
vector<string> paths;
@@ -699,12 +714,12 @@ ARDOUR_UI::post_engine ()
string ver = ver_in.substr(0, ver_in.find("-"));
cout << "\n<h2>Menu actions</h2>" << endl;
- cout << "<!-- created by running " << PROGRAM_NAME << " -b -->" << endl;
+ cout << "<!-- created by running " << PROGRAM_NAME << " -A -->" << endl;
cout << "<p>\n Every single menu item in " << PROGRAM_NAME << "'s GUI is accessible by control" << endl;
cout << " surfaces or scripts.\n</p>\n" << endl;
cout << "<p>\n The list below shows all available values of <em>action-name</em> as of" << endl;
cout << " " << PROGRAM_NAME << " " << ver << ". You can get the current list at any" << endl;
- cout << " time by running " << PROGRAM_NAME << " with the -b flag.\n</p>\n" << endl;
+ cout << " time by running " << PROGRAM_NAME << " with the -A flag.\n</p>\n" << endl;
cout << "<table class=\"dl\">\n <thead>" << endl;
cout << " <tr><th>Action Name</th><th>Menu Name</th></tr>" << endl;
cout << " </thead>\n <tbody>" << endl;