aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-03 12:49:20 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-07-03 12:49:20 (GMT)
commit3da1a57f02e95c247b2c6c918e4a76cbc93c466f (patch)
treee16325e357068d857b295afc9f24b30bde3993be /src
parent985b61bdce9c90803c2dec5ced58d819f4c8c7a1 (diff)
downloadfluxbox_pavel-3da1a57f02e95c247b2c6c918e4a76cbc93c466f.zip
fluxbox_pavel-3da1a57f02e95c247b2c6c918e4a76cbc93c466f.tar.bz2
Report unrecognized menu entries
I put the error message into the menu, because noone reads stderr anyway.
Diffstat (limited to 'src')
-rw-r--r--src/MenuCreator.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index 467f643..ea45487 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -268,9 +268,12 @@ insertMenuItem(lua::state &l, FbTk::Menu &menu, FbTk::StringConvertor &parent_co
268 reloader, program) ); 268 reloader, program) );
269 } else if (str_key == "workspaces") { 269 } else if (str_key == "workspaces") {
270 menu.insert(str_label, RefMenu(screen->workspaceMenu()) ); 270 menu.insert(str_label, RefMenu(screen->workspaceMenu()) );
271 } else { 271 // finally, try window-related commands
272 // finally, try window-related commands 272 } else if(! MenuCreator::createWindowMenuItem(str_key, str_label, menu)) {
273 MenuCreator::createWindowMenuItem(str_key, str_label, menu); 273 // everything failed, we give up
274 int size = menu.insert(_FB_XTEXT(Menu, UnknownType, "Unknown menu type: ",
275 "The text will be followed by the actual type") + str_key);
276 menu.setItemEnabled(size-1, false);
274 } 277 }
275 } 278 }
276 279