diff options
author | markt <markt> | 2007-03-16 20:44:47 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-16 20:44:47 (GMT) |
commit | 74216903cc04b9b4492925fc4f90e9f5f378d8c1 (patch) | |
tree | 9c48de40fba08bde6a3792dd24f12ebc3a4db8b2 /src/FbCommands.cc | |
parent | d948abb81b104dd1562015c4dfa0d080480b6ce2 (diff) | |
download | fluxbox_pavel-74216903cc04b9b4492925fc4f90e9f5f378d8c1.zip fluxbox_pavel-74216903cc04b9b4492925fc4f90e9f5f378d8c1.tar.bz2 |
added custommenu command
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 692e12f..bef6402 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "Workspace.hh" | 28 | #include "Workspace.hh" |
29 | #include "Window.hh" | 29 | #include "Window.hh" |
30 | #include "Keys.hh" | 30 | #include "Keys.hh" |
31 | #include "MenuCreator.hh" | ||
31 | 32 | ||
32 | #include "FbTk/Theme.hh" | 33 | #include "FbTk/Theme.hh" |
33 | #include "FbTk/Menu.hh" | 34 | #include "FbTk/Menu.hh" |
@@ -269,6 +270,16 @@ void HideMenuCmd::execute() { | |||
269 | screen->workspaceMenu().hide(); | 270 | screen->workspaceMenu().hide(); |
270 | } | 271 | } |
271 | 272 | ||
273 | ShowCustomMenuCmd::ShowCustomMenuCmd(const string &arguments) : custom_menu_file(arguments) {} | ||
274 | |||
275 | void ShowCustomMenuCmd::execute() { | ||
276 | BScreen *screen = Fluxbox::instance()->mouseScreen(); | ||
277 | if (screen == 0) | ||
278 | return; | ||
279 | ::showMenu(*screen, *MenuCreator::createFromFile(custom_menu_file, | ||
280 | screen->screenNumber(), true)); | ||
281 | } | ||
282 | |||
272 | void ShowRootMenuCmd::execute() { | 283 | void ShowRootMenuCmd::execute() { |
273 | BScreen *screen = Fluxbox::instance()->mouseScreen(); | 284 | BScreen *screen = Fluxbox::instance()->mouseScreen(); |
274 | if (screen == 0) | 285 | if (screen == 0) |