// 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
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;
}
}
-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.
}
-docstring InsetInfo::contextMenuName() const
+string InsetInfo::contextMenuName() const
{
- return from_ascii("context-info");
+ return "context-info";
}