aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-26 23:52:09 (GMT)
committerfluxgen <fluxgen>2003-08-26 23:52:09 (GMT)
commit64387c87065127bbddfebe170823295df78865c5 (patch)
treeb6b6296992ef6044fb7ab2f42d1795a6e3c886dd /src
parente984c66191b0207188a0cc90ee0fde392940ffe7 (diff)
downloadfluxbox-64387c87065127bbddfebe170823295df78865c5.zip
fluxbox-64387c87065127bbddfebe170823295df78865c5.tar.bz2
added SetWorkspaceNameCmd
Diffstat (limited to 'src')
-rw-r--r--src/FbCommands.cc13
-rw-r--r--src/FbCommands.hh7
2 files changed, 18 insertions, 2 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index f8df2da..61e22e7 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -19,13 +19,14 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbCommands.cc,v 1.13 2003/08/11 14:52:10 fluxgen Exp $ 22// $Id: FbCommands.cc,v 1.14 2003/08/26 23:52:09 fluxgen Exp $
23 23
24#include "FbCommands.hh" 24#include "FbCommands.hh"
25#include "fluxbox.hh" 25#include "fluxbox.hh"
26#include "FbTk/Theme.hh" 26#include "FbTk/Theme.hh"
27#include "Screen.hh" 27#include "Screen.hh"
28#include "Menu.hh" 28#include "Menu.hh"
29#include "SetWorkspaceName.hh"
29 30
30#include <sys/types.h> 31#include <sys/types.h>
31#include <unistd.h> 32#include <unistd.h>
@@ -113,4 +114,14 @@ void ShowRootMenuCmd::execute() {
113 } 114 }
114} 115}
115 116
117void SetWorkspaceNameCmd::execute() {
118
119 BScreen *screen = Fluxbox::instance()->mouseScreen();
120 if (screen == 0)
121 return;
122
123 SetWorkspaceName *win = new SetWorkspaceName(*screen);
124 win->show();
125}
126
116}; // end namespace FbCommands 127}; // end namespace FbCommands
diff --git a/src/FbCommands.hh b/src/FbCommands.hh
index 04fb9e8..53482f3 100644
--- a/src/FbCommands.hh
+++ b/src/FbCommands.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbCommands.hh,v 1.8 2003/07/01 20:24:19 fluxgen Exp $ 22// $Id: FbCommands.hh,v 1.9 2003/08/26 23:51:16 fluxgen Exp $
23 23
24// \file contains basic commands to restart, reconfigure, execute command and exit fluxbox 24// \file contains basic commands to restart, reconfigure, execute command and exit fluxbox
25 25
@@ -83,6 +83,11 @@ public:
83 void execute(); 83 void execute();
84}; 84};
85 85
86class SetWorkspaceNameCmd: public FbTk::Command {
87public:
88 void execute();
89};
90
86}; // end namespace FbCommands 91}; // end namespace FbCommands
87 92
88#endif // FBCOMMANDS_HH 93#endif // FBCOMMANDS_HH