From 1534c8d728d6fd2f97feef5e0a5f8ab294aa8639 Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Tue, 5 Feb 2008 18:07:50 +0100 Subject: Consistency: alpha submenu of WindowMenu should not have title. Signed-off-by: Tomas Janousek --- src/MenuCreator.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc index 32a046f..9f20155 100644 --- a/src/MenuCreator.cc +++ b/src/MenuCreator.cc @@ -586,11 +586,14 @@ bool MenuCreator::createWindowMenuItem(const string &type, if (screen == 0) 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 containing various transparency options"): label, - new AlphaMenu(screen->menuTheme(), - screen->imageControl(), - *screen->layerManager().getLayer(Layer::MENU))); + submenu); } #endif // HAVE_XRENDER } else if (type == "extramenus") { -- cgit v0.11.2