X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Factions.cc;h=41bc30266fbc294ac22d56e9f601271b8735e275;hb=fc32ea76423d8dc4d393970531e8249f6811afcb;hp=6d29737b8643bb633773529d92a999e4b9322610;hpb=44f4b84551d36ef4103d09452768f5ba53e0002c;p=ardour.git diff --git a/gtk2_ardour/actions.cc b/gtk2_ardour/actions.cc index 6d29737b86..41bc30266f 100644 --- a/gtk2_ardour/actions.cc +++ b/gtk2_ardour/actions.cc @@ -51,7 +51,6 @@ vector > ActionManager::session_sensitive_actions; vector > ActionManager::write_sensitive_actions; vector > ActionManager::region_list_selection_sensitive_actions; vector > ActionManager::plugin_selection_sensitive_actions; -vector > ActionManager::region_selection_sensitive_actions; vector > ActionManager::track_selection_sensitive_actions; vector > ActionManager::point_selection_sensitive_actions; vector > ActionManager::time_selection_sensitive_actions; @@ -92,7 +91,7 @@ ActionManager::init () if (!loaded) { cerr << string_compose (_("%1 will not work without a valid ardour.menus file"), PROGRAM_NAME) << endl; - error << string_compose (_("%1 will not work without a valid ardour.menus file"), PROGRAM_NAME) << endmsg; + error << string_compose (_("%1 will not work without a valid ardour.menus file"), PROGRAM_NAME) << endmsg; exit(1); } } @@ -186,16 +185,3 @@ ActionManager::map_some_state (const char* group, const char* action, sigc::slot } } -string -ActionManager::get_key_representation (const string& accel_path, AccelKey& key) -{ - bool known = lookup_entry (accel_path, key); - - if (known) { - uint32_t k = possibly_translate_legal_accelerator_to_real_key (key.get_key()); - key = AccelKey (k, Gdk::ModifierType (key.get_mod())); - return ui_manager->get_accel_group()->name (key.get_key(), Gdk::ModifierType (key.get_mod())); - } - - return unbound_string; -}