aboutsummaryrefslogtreecommitdiff
path: root/src/MenuCreator.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-25 03:11:31 (GMT)
committersimonb <simonb>2006-04-25 03:11:31 (GMT)
commite2bc57bc0fef16faba89f996e354445c31aebedd (patch)
treecc6127b87a9c5d5c2e6ecc84a4317c04dabb0e63 /src/MenuCreator.cc
parentcb65dae95fb3bd01cb4e43286ba2a56c41838d2e (diff)
downloadfluxbox-e2bc57bc0fef16faba89f996e354445c31aebedd.zip
fluxbox-e2bc57bc0fef16faba89f996e354445c31aebedd.tar.bz2
Fix occasional highlighting of menu nops+separators, sf.net patch
#1475268 (thanks Scott Kuhl; skuhl AT cs utah edu)
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r--src/MenuCreator.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index c97d51d..f920321 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -186,7 +186,8 @@ static void translateMenuItem(Parser &parse, ParseItem &pitem) {
186 if (str_key == "end") { 186 if (str_key == "end") {
187 return; 187 return;
188 } else if (str_key == "nop") { 188 } else if (str_key == "nop") {
189 menu.insert(str_label.c_str()); 189 int menuSize = menu.insert(str_label.c_str());
190 menu.setItemEnabled(menuSize-1, false);
190 } else if (str_key == "icons") { 191 } else if (str_key == "icons") {
191 FbTk::Menu *submenu = MenuCreator::createMenuType("iconmenu", menu.screenNumber()); 192 FbTk::Menu *submenu = MenuCreator::createMenuType("iconmenu", menu.screenNumber());
192 if (submenu == 0) 193 if (submenu == 0)