]> git.lyx.org Git - features.git/blobdiff - src/MenuBackend.C
This commit transfers the singletons defined in the Application class to the private...
[features.git] / src / MenuBackend.C
index 9bf73f70080bf58ce048a73c035544a98460ebba..ce6f645ae0b67638407d106fb803161fa343b124 100644 (file)
@@ -65,8 +65,6 @@ using std::string;
 using std::vector;
 
 
-extern boost::scoped_ptr<kb_keymap> toplevel_keymap;
-
 namespace {
 
 class MenuNamesEqual : public std::unary_function<Menu, bool> {
@@ -139,7 +137,7 @@ docstring const MenuItem::binding() const
 
        // Get the keys bound to this action, but keep only the
        // first one later
-       kb_keymap::Bindings bindings = toplevel_keymap->findbindings(func_);
+       kb_keymap::Bindings bindings = theTopLevelKeymap().findbindings(func_);
 
        if (bindings.size()) {
                return lyx::from_utf8(bindings.begin()->print());