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) if (screen == 0)
return false; return false;
FbTk::Menu *submenu =
new AlphaMenu(screen->menuTheme(),
screen->imageControl(),
*screen->layerManager().getLayer(Layer::MENU));
submenu->disableTitle();
menu.insert(label.empty() ? _FB_XTEXT(Configmenu, Transparency, "Transparency", menu.insert(label.empty() ? _FB_XTEXT(Configmenu, Transparency, "Transparency",
"Menu containing various transparency options"): label, "Menu containing various transparency options"): label,
new AlphaMenu(screen->menuTheme(), submenu);
screen->imageControl(),
*screen->layerManager().getLayer(Layer::MENU)));
} }
#endif // HAVE_XRENDER #endif // HAVE_XRENDER
} else if (type == "extramenus") { } else if (type == "extramenus") {