all repos — fluxbox @ 450c1d80f6f1c62a17c7231aec400a06e8a22b0b

custom fork of the fluxbox windowmanager

added edit current workspace name menu item
fluxgen fluxgen
commit

450c1d80f6f1c62a17c7231aec400a06e8a22b0b

parent

720da3cc5664316357107318b6a838034223aa40

1 files changed, 7 insertions(+), 7 deletions(-)

jump to
M src/Toolbar.ccsrc/Toolbar.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 "MacroCommand.hh"

#include "BoolMenuItem.hh" #include "Xinerama.hh" #include "Strut.hh" - +#include "FbCommands.hh" // use GNU extensions #ifndef _GNU_SOURCE

@@ -742,13 +742,13 @@ using namespace FbTk;

FbTk::Menu &menu = tbar.menu(); //!! TODO: this should be inserted by the workspace tool - /* + - RefCount<Command> start_edit(new SimpleCommand<Toolbar>(tbar, &Toolbar::edit)); + RefCount<Command> 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"));