aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/MenuCreator.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index 6b612ef..8619b00 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -269,9 +269,12 @@ insertMenuItem(lua::state &l, FbTk::Menu &menu, FbTk::StringConvertor &parent_co
269 reloader, program) ); 269 reloader, program) );
270 } else if (str_key == "workspaces") { 270 } else if (str_key == "workspaces") {
271 menu.insert(str_label, RefMenu(screen->workspaceMenu()) ); 271 menu.insert(str_label, RefMenu(screen->workspaceMenu()) );
272 } else { 272 // finally, try window-related commands
273 // finally, try window-related commands 273 } else if(! MenuCreator::createWindowMenuItem(str_key, str_label, menu)) {
274 MenuCreator::createWindowMenuItem(str_key, str_label, menu); 274 // everything failed, we give up
275 int size = menu.insert(_FB_XTEXT(Menu, UnknownType, "Unknown menu type: ",
276 "The text will be followed by the actual type") + str_key);
277 menu.setItemEnabled(size-1, false);
275 } 278 }
276 } 279 }
277 280