diff options
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index e39967d670..39c0ee62d6 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -695,28 +695,28 @@ ARDOUR_UI::post_engine () vector<string> tooltips; vector<string> keys; vector<Glib::RefPtr<Gtk::Action> > actions; + string ver_in = revision; + string ver = ver_in.substr(0, ver_in.find("-")); cout << "\n<h2>Menu actions</h2>" << endl; cout << "<!-- created by running ardour -b -->" << endl; cout << "<p>\n Every single menu item in Ardour'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 << "Ardour " << revision << ". You can get the current list at any" << endl; + cout << " Ardour " << ver << ". You can get the current list at any" << endl; cout << " time by running Ardour with the -b flag.\n</p>\n" << endl; cout << "<table class=\"dl\">\n <thead>" << endl; - cout << " <tr><th>Action Name</th><th>Menu Name</th><th>Key Binding</th></tr>" << endl; + cout << " <tr><th>Action Name</th><th>Menu Name</th></tr>" << endl; cout << " </thead>\n <tbody>" << endl; Gtkmm2ext::ActionMap::get_all_actions (paths, labels, tooltips, keys, actions); - vector<string>::iterator k; vector<string>::iterator p; vector<string>::iterator l; - for (p = paths.begin(), k = keys.begin(), l = labels.begin(); p != paths.end(); ++k, ++p, ++l) { + for (p = paths.begin(), l = labels.begin(); p != paths.end(); ++p, ++l) { cout << " <tr><th><kbd class=\"osc\">" << (*p).substr (9, string::npos); - cout << "</kbd></th><td>" << *l << "</td>"; - cout << "<td>" << *k << "</td></tr>" << endl; + cout << "</kbd></th><td>" << *l << "</td></tr>" << endl; } cout << " </tbody>\n </table class=\"dl\">" << endl; |