aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-03 12:17:53 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-11-01 09:57:20 (GMT)
commitb9ab0242fdc8598959c82d6f749a3d01b305f069 (patch)
treeeddfd6b7c21ac6cef21b55bee32fca5e7caeabdb
parentad42ae5c403274502768df904d7b1aeb7174c2ed (diff)
downloadfluxbox_paul-b9ab0242fdc8598959c82d6f749a3d01b305f069.zip
fluxbox_paul-b9ab0242fdc8598959c82d6f749a3d01b305f069.tar.bz2
Add support for lua commands to MenuCreator
-rw-r--r--src/MenuCreator.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index abd6691..c1eeca4 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -32,6 +32,7 @@
32#include "WindowMenuAccessor.hh" 32#include "WindowMenuAccessor.hh"
33 33
34#include "ClientMenu.hh" 34#include "ClientMenu.hh"
35#include "FbCommands.hh"
35#include "WorkspaceMenu.hh" 36#include "WorkspaceMenu.hh"
36#include "LayerMenu.hh" 37#include "LayerMenu.hh"
37#include "SendToMenu.hh" 38#include "SendToMenu.hh"
@@ -285,6 +286,9 @@ insertMenuItem(lua::state &l, FbTk::Menu &menu, FbTk::StringConvertor &parent_co
285 menu.insert(str_label, exit_cmd); 286 menu.insert(str_label, exit_cmd);
286 } else if (str_key == "config") { 287 } else if (str_key == "config") {
287 menu.insert(str_label, RefMenu(screen->configMenu()) ); 288 menu.insert(str_label, RefMenu(screen->configMenu()) );
289 } else if (str_key == "lua") {
290 l.rawgetfield(-1, "param");
291 menu.insert(str_label, RefCmd(new FbCommands::LuaCmd(l)) );
288 } else if(str_key == "menu") { 292 } else if(str_key == "menu") {
289 RefMenu t(MenuCreator::createMenu("", screen_number)); 293 RefMenu t(MenuCreator::createMenu("", screen_number));
290 l.pushvalue(-1); 294 l.pushvalue(-1);