]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInfo.cpp
Added inset-select-all to emacs bindings
[lyx.git] / src / insets / InsetInfo.cpp
index 212567686771fd4d762ef71156d4d4483392d738..d914d949389c4bf95e32f22f4fa1f1bae3f8725e 100644 (file)
@@ -381,7 +381,7 @@ void InsetInfo::updateInfo()
                        // do not insert > for the top level menu item
                        if (it != beg)
                                par.insertInset(par.size(), new InsetSpecialChar(InsetSpecialChar::MENU_SEPARATOR),
-                                               Change(Change::UNCHANGED));
+                                               f, Change(Change::UNCHANGED));
                        //FIXME: add proper underlines here. This
                        // involves rewriting searchMenu used above to
                        // return a vector of menus. If we do not do
@@ -412,7 +412,8 @@ void InsetInfo::updateInfo()
                igp.filename = file;
                inset->setParams(igp);
                clear();
-               paragraphs().front().insertInset(0, inset, 
+               Font const f(inherit_font, buffer().params().language);
+               paragraphs().front().insertInset(0, inset, f,
                                                 Change(Change::UNCHANGED));
                break;
        }
@@ -422,7 +423,7 @@ void InsetInfo::updateInfo()
                        break;
                }
                if (name_ == "path") {
-                       setText(from_utf8(buffer().filePath()));
+                       setText(from_utf8(os::latex_path(buffer().filePath())));
                        break;
                }
                if (name_ == "class") {
@@ -462,7 +463,7 @@ void InsetInfo::updateInfo()
 }
 
 
-docstring InsetInfo::contextMenu(BufferView const &, int, int) const
+string InsetInfo::contextMenu(BufferView const &, int, int) const
 {
        //FIXME: We override the implementation of InsetCollapsable,
        //because this inset is not a collapsable inset.
@@ -470,9 +471,9 @@ docstring InsetInfo::contextMenu(BufferView const &, int, int) const
 }
 
 
-docstring InsetInfo::contextMenuName() const
+string InsetInfo::contextMenuName() const
 {
-       return from_ascii("context-info");
+       return "context-info";
 }