Consistency: alpha submenu of WindowMenu should not have title.

Signed-off-by: Tomas Janousek <tomi@nomi.cz>
This commit is contained in:
Tomas Janousek 2008-02-05 18:07:50 +01:00
parent b61502ffbc
commit 1534c8d728

View file

@ -586,11 +586,14 @@ bool MenuCreator::createWindowMenuItem(const string &type,
if (screen == 0)
return false;
menu.insert(label.empty() ? _FB_XTEXT(Configmenu, Transparency, "Transparency",
"Menu containing various transparency options"): label,
FbTk::Menu *submenu =
new AlphaMenu(screen->menuTheme(),
screen->imageControl(),
*screen->layerManager().getLayer(Layer::MENU)));
*screen->layerManager().getLayer(Layer::MENU));
submenu->disableTitle();
menu.insert(label.empty() ? _FB_XTEXT(Configmenu, Transparency, "Transparency",
"Menu containing various transparency options"): label,
submenu);
}
#endif // HAVE_XRENDER
} else if (type == "extramenus") {