From 450c1d80f6f1c62a17c7231aec400a06e8a22b0b Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 27 Aug 2003 00:11:57 +0000 Subject: added edit current workspace name menu item --- src/Toolbar.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 180aa4b..1462532 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.cc,v 1.115 2003/08/24 23:15:02 fluxgen Exp $ +// $Id: Toolbar.cc,v 1.116 2003/08/27 00:11:57 fluxgen Exp $ #include "Toolbar.hh" @@ -47,7 +47,7 @@ #include "BoolMenuItem.hh" #include "Xinerama.hh" #include "Strut.hh" - +#include "FbCommands.hh" // use GNU extensions #ifndef _GNU_SOURCE @@ -742,13 +742,13 @@ void Toolbar::setupMenus() { FbTk::Menu &menu = tbar.menu(); //!! TODO: this should be inserted by the workspace tool - /* + - RefCount start_edit(new SimpleCommand(tbar, &Toolbar::edit)); + RefCount start_edit(new FbCommands::SetWorkspaceNameCmd()); menu.insert(i18n->getMessage(FBNLS::ToolbarSet, FBNLS::ToolbarEditWkspcName, - "Edit current workspace name"), - start_edit); - */ + "Edit current workspace name"), + start_edit); + menu.setLabel(i18n->getMessage(FBNLS::ToolbarSet, FBNLS::ToolbarToolbarTitle, "Toolbar")); -- cgit v0.11.2