added SetWorkspaceNameCmd
This commit is contained in:
parent
e984c66191
commit
64387c8706
2 changed files with 18 additions and 2 deletions
|
@ -19,13 +19,14 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// $Id: FbCommands.cc,v 1.13 2003/08/11 14:52:10 fluxgen Exp $
|
||||
// $Id: FbCommands.cc,v 1.14 2003/08/26 23:52:09 fluxgen Exp $
|
||||
|
||||
#include "FbCommands.hh"
|
||||
#include "fluxbox.hh"
|
||||
#include "FbTk/Theme.hh"
|
||||
#include "Screen.hh"
|
||||
#include "Menu.hh"
|
||||
#include "SetWorkspaceName.hh"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
@ -113,4 +114,14 @@ void ShowRootMenuCmd::execute() {
|
|||
}
|
||||
}
|
||||
|
||||
void SetWorkspaceNameCmd::execute() {
|
||||
|
||||
BScreen *screen = Fluxbox::instance()->mouseScreen();
|
||||
if (screen == 0)
|
||||
return;
|
||||
|
||||
SetWorkspaceName *win = new SetWorkspaceName(*screen);
|
||||
win->show();
|
||||
}
|
||||
|
||||
}; // end namespace FbCommands
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// $Id: FbCommands.hh,v 1.8 2003/07/01 20:24:19 fluxgen Exp $
|
||||
// $Id: FbCommands.hh,v 1.9 2003/08/26 23:51:16 fluxgen Exp $
|
||||
|
||||
// \file contains basic commands to restart, reconfigure, execute command and exit fluxbox
|
||||
|
||||
|
@ -83,6 +83,11 @@ public:
|
|||
void execute();
|
||||
};
|
||||
|
||||
class SetWorkspaceNameCmd: public FbTk::Command {
|
||||
public:
|
||||
void execute();
|
||||
};
|
||||
|
||||
}; // end namespace FbCommands
|
||||
|
||||
#endif // FBCOMMANDS_HH
|
||||
|
|
Loading…
Reference in a new issue