Toolbar tb;
tb.name = lex.getString();
+ lex.next(true);
+ if (!lex.isOK()) {
+ lyxerr << "ToolbarBackend::read: Malformed toolbar "
+ "description " << lex.getString() << endl;
+ return;
+ }
+ tb.gui_name = lex.getString();
bool quit = false;
FuncRequest const & func, string const & tooltip)
{
tb.items.push_back(make_pair(func, tooltip));
+ tb.items.back().first.origin = FuncRequest::UI;
}
string const ToolbarBackend::getIcon(FuncRequest const & f)
{
+ using lyx::frontend::find_xpm;
+
string fullname;
if (f.action == LFUN_INSERT_MATH) {