From 4d01d1b748a99f1380a582874ab46e900fc7eca2 Mon Sep 17 00:00:00 2001 From: rathnor Date: Sun, 29 Aug 2004 09:08:29 +0000 Subject: add back Workspace keys with deprecated message --- ChangeLog | 3 +++ src/FbCommandFactory.cc | 22 +++++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 55826c3..033a6ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ (Format: Year/Month/Day) Changes for 0.9.10: *04/08/29: + * Add back Workspace actions with deprecated message (Simon) + - need transition time, remove when 1.0 has been widely used for a while + FbCommandFactory.cc * More random render fixes (Simon) (font alignment in menu, menu optimisation, toolbar font/render) FbTk/Menu.cc FbTk/MenuItem.cc FbTk/XftFontImp.cc diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc index db9c4d6..7a2691f 100644 --- a/src/FbCommandFactory.cc +++ b/src/FbCommandFactory.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommandFactory.cc,v 1.32 2004/06/07 11:46:04 rathnor Exp $ +// $Id: FbCommandFactory.cc,v 1.33 2004/08/29 09:08:29 rathnor Exp $ #include "FbCommandFactory.hh" @@ -129,6 +129,20 @@ FbCommandFactory::FbCommandFactory() { "toggledecor", "windowmenu", "workspace", + /* NOTE: The following are DEPRECATED and subject to removal */ + "workspace1", + "workspace2", + "workspace3", + "workspace4", + "workspace5", + "workspace6", + "workspace7", + "workspace8", + "workspace9", + "workspace10", + "workspace11", + "workspace12", + /* end note */ "workspacemenu", "" }; @@ -278,6 +292,12 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command, if (!arguments.empty()) num = atoi(arguments.c_str()); return new JumpToWorkspaceCmd(num-1); + } if (command.substr(0, 9) == "workspace" && command[9] >= '0' && command[9] <= '9') { + cerr<<"*** WARNING: 'Workspace' actions are deprecated! Use 'Workspace ' instead"<