(expandToolbar): remove unneeded variables buf and i; use
the toolbar's gui_name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15846
a592a061-630c-0410-9148-
cb99ea01b6c8
-void expandToolbars(Menu & tomenu, Buffer const * buf)
+void expandToolbars(Menu & tomenu)
{
//
// extracts the toolbars from the backend
ToolbarBackend::Toolbars::const_iterator cit = toolbarbackend.begin();
ToolbarBackend::Toolbars::const_iterator end = toolbarbackend.end();
{
//
// extracts the toolbars from the backend
ToolbarBackend::Toolbars::const_iterator cit = toolbarbackend.begin();
ToolbarBackend::Toolbars::const_iterator end = toolbarbackend.end();
- int i = 1;
- for (; cit != end; ++cit, ++i) {
- docstring label = _(cit->name);
- label = char_type(uppercase(label[0])) + label.substr(1);
+ for (; cit != end; ++cit) {
+ docstring label = _(cit->gui_name);
// frontends are not supposed to turn on/off toolbars, if they can not
// update ToolbarBackend::flags. That is to say, ToolbarsBackend::flags
// should reflect the true state of toolbars.
// frontends are not supposed to turn on/off toolbars, if they can not
// update ToolbarBackend::flags. That is to say, ToolbarsBackend::flags
// should reflect the true state of toolbars.
break;
case MenuItem::Toolbars:
break;
case MenuItem::Toolbars:
- expandToolbars(tomenu, buf);
+ expandToolbars(tomenu);
break;
case MenuItem::Branches:
break;
case MenuItem::Branches: