Consistency: alpha submenu of WindowMenu should not have title.
Signed-off-by: Tomas Janousek <tomi@nomi.cz>
This commit is contained in:
parent
b61502ffbc
commit
1534c8d728
1 changed files with 6 additions and 3 deletions
|
@ -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") {
|
||||||
|
|
Loading…
Reference in a new issue