aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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