aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-03 12:17:53 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-07-03 12:17:53 (GMT)
commit03834d34720b1ca9b03c7260980c37e9c67d8144 (patch)
treef8a59f915d7a96d6310af08a0711cb6487613ef7
parentc68a21bbc495e3cd6d36baab34179a3ea5a127d7 (diff)
downloadfluxbox_pavel-03834d34720b1ca9b03c7260980c37e9c67d8144.zip
fluxbox_pavel-03834d34720b1ca9b03c7260980c37e9c67d8144.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);