From ecead0f5ede328a75103c32398114586e40f5e45 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 23 Oct 2007 21:19:12 +0000 Subject: adding/removing workspaces wasn't updating menu --- ChangeLog | 2 ++ src/Screen.cc | 2 ++ src/WorkspaceMenu.cc | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c1c6a20..c18c86c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0.1: *07/10/23: + * Adding/removing workspaces wasn't updating menu (Mark) + Screen.cc * Support remembering maximized, minimized, and fullscreen state (Mark) - [Maximized] {yes|no|horz|vert} - [Minimized] {yes|no} diff --git a/src/Screen.cc b/src/Screen.cc index 0589d2f..55517d8 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -1202,6 +1202,7 @@ int BScreen::addWorkspace() { addWorkspaceName(wkspc->name().c_str()); //update names saveWorkspaces(m_workspaces_list.size()); + workspaceCountSig().notify(); return m_workspaces_list.size(); @@ -1231,6 +1232,7 @@ int BScreen::removeLastWorkspace() { m_workspaces_list.pop_back(); saveWorkspaces(m_workspaces_list.size()); + workspaceCountSig().notify(); // must be deleted after we send notify!! // so we dont get bad pointers somewhere // while processing the notify signal diff --git a/src/WorkspaceMenu.cc b/src/WorkspaceMenu.cc index 1083ea3..43cd3a3 100644 --- a/src/WorkspaceMenu.cc +++ b/src/WorkspaceMenu.cc @@ -95,7 +95,7 @@ void WorkspaceMenu::update(FbTk::Subject *subj) { wkspc->name().c_str(), &wkspc->menu()); FbTk::RefCount jump_cmd(new JumpToWorkspaceCmd(wkspc->workspaceID())); - mb_menu->setCommand(2, jump_cmd); + mb_menu->setCommand(3, jump_cmd); insert(mb_menu, workspace + IDX_AFTER_ICONS); } -- cgit v0.11.2