summaryrefslogtreecommitdiff
path: root/src/MenuCreator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r--src/MenuCreator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index 9d2b4fa..4a2cc0e 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -458,7 +458,7 @@ FbTk::Menu *MenuCreator::createMenuType(const std::string &type, int screen_num)
458 menu->disableTitle(); // not titlebar 458 menu->disableTitle(); // not titlebar
459 if (screen->windowMenuFilename().empty() || 459 if (screen->windowMenuFilename().empty() ||
460 ! createWindowMenuFromFile(screen->windowMenuFilename(), *menu, true)) { 460 ! createWindowMenuFromFile(screen->windowMenuFilename(), *menu, true)) {
461 char default_menu[][11] = { 461 char *default_menu[] = {
462 "shade", 462 "shade",
463 "stick", 463 "stick",
464 "maximize", 464 "maximize",
@@ -472,7 +472,7 @@ FbTk::Menu *MenuCreator::createMenuType(const std::string &type, int screen_num)
472 "close", 472 "close",
473 0 473 0
474 }; 474 };
475 for (unsigned int i=0; i < sizeof(default_menu); ++i) 475 for (unsigned int i=0; default_menu[i]; ++i)
476 createWindowMenuItem(default_menu[i], "", *menu); 476 createWindowMenuItem(default_menu[i], "", *menu);
477 } 477 }
478 menu->reconfigure(); // update graphics 478 menu->reconfigure(); // update graphics