aboutsummaryrefslogtreecommitdiff
path: root/src/MenuCreator.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-05-02 22:28:45 (GMT)
committerfluxgen <fluxgen>2004-05-02 22:28:45 (GMT)
commitb872c2e0c03c60c875095a405715d747d20a5e96 (patch)
tree0c646bb8688c2e1803b11067c6c4793b048e5f1c /src/MenuCreator.cc
parent805f58193208bf65676bad624f83716c57109ace (diff)
downloadfluxbox-b872c2e0c03c60c875095a405715d747d20a5e96.zip
fluxbox-b872c2e0c03c60c875095a405715d747d20a5e96.tar.bz2
minor fix for layer menu title
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r--src/MenuCreator.cc17
1 files 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 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: MenuCreator.cc,v 1.2 2004/05/02 22:17:00 fluxgen Exp $ 23// $Id: MenuCreator.cc,v 1.3 2004/05/02 22:28:45 fluxgen Exp $
24 24
25#include "MenuCreator.hh" 25#include "MenuCreator.hh"
26 26
@@ -406,12 +406,15 @@ bool MenuCreator::createWindowMenuItem(const std::string &type,
406 BScreen *screen = Fluxbox::instance()->findScreen(menu.screenNumber()); 406 BScreen *screen = Fluxbox::instance()->findScreen(menu.screenNumber());
407 if (screen == 0) 407 if (screen == 0)
408 return false; 408 return false;
409 menu.insert(real_label.c_str(), 409 FbTk::Menu *submenu = new LayerMenu<FluxboxWindow>(screen->menuTheme(),
410 new LayerMenu<FluxboxWindow>(screen->menuTheme(), 410 screen->imageControl(),
411 screen->imageControl(), 411 *screen->layerManager().
412 *screen->layerManager().getLayer(Fluxbox::instance()->getMenuLayer()), 412 getLayer(Fluxbox::instance()->getMenuLayer()),
413 &win, 413 &win,
414 false)); 414 false);
415 submenu->disableTitle();
416 menu.insert(real_label.c_str(), submenu);
417
415 418
416 } else if (type == "separator") { 419 } else if (type == "separator") {
417 menu.insert("---"); 420 menu.insert("---");