From b872c2e0c03c60c875095a405715d747d20a5e96 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 2 May 2004 22:28:45 +0000 Subject: minor fix for layer menu title --- src/MenuCreator.cc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc index b09d851..00bc82d 100644 --- a/src/MenuCreator.cc +++ b/src/MenuCreator.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: MenuCreator.cc,v 1.2 2004/05/02 22:17:00 fluxgen Exp $ +// $Id: MenuCreator.cc,v 1.3 2004/05/02 22:28:45 fluxgen Exp $ #include "MenuCreator.hh" @@ -406,12 +406,15 @@ bool MenuCreator::createWindowMenuItem(const std::string &type, BScreen *screen = Fluxbox::instance()->findScreen(menu.screenNumber()); if (screen == 0) return false; - menu.insert(real_label.c_str(), - new LayerMenu(screen->menuTheme(), - screen->imageControl(), - *screen->layerManager().getLayer(Fluxbox::instance()->getMenuLayer()), - &win, - false)); + FbTk::Menu *submenu = new LayerMenu(screen->menuTheme(), + screen->imageControl(), + *screen->layerManager(). + getLayer(Fluxbox::instance()->getMenuLayer()), + &win, + false); + submenu->disableTitle(); + menu.insert(real_label.c_str(), submenu); + } else if (type == "separator") { menu.insert("---"); -- cgit v0.11.2