summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-02-28 15:46:01 (GMT)
committerfluxgen <fluxgen>2002-02-28 15:46:01 (GMT)
commiteaba89e7f377e86543449fd5debd03c85ecb223a (patch)
tree5f4654ef3cd4c034cc0b632c30bffc41c01b80f7
parent34b2b9637be9daf8fe51ad83dc1796c2cb071527 (diff)
downloadfluxbox_lack-eaba89e7f377e86543449fd5debd03c85ecb223a.zip
fluxbox_lack-eaba89e7f377e86543449fd5debd03c85ecb223a.tar.bz2
back to basemenu insert/remove
-rw-r--r--src/Screen.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 4767363..1c86baf 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.cc,v 1.32 2002/02/27 23:47:47 fluxgen Exp $ 25// $Id: Screen.cc,v 1.33 2002/02/28 15:46:01 fluxgen Exp $
26 26
27// stupid macros needed to access some functions in version 2 of the GNU C 27// stupid macros needed to access some functions in version 2 of the GNU C
28// library 28// library
@@ -738,8 +738,9 @@ int BScreen::addWorkspace(void) {
738 Workspace *wkspc = new Workspace(this, workspacesList.size()); 738 Workspace *wkspc = new Workspace(this, workspacesList.size());
739 workspacesList.push_back(wkspc); 739 workspacesList.push_back(wkspc);
740 //add workspace to workspacemenu 740 //add workspace to workspacemenu
741 workspacemenu->addWorkspace(wkspc); 741 workspacemenu->insert(wkspc->getName(), wkspc->getMenu(),
742 742 wkspc->getWorkspaceID() + 2); //+2 so we add it after "remove last"
743
743 workspacemenu->update(); 744 workspacemenu->update();
744 saveWorkspaces(workspacesList.size()); 745 saveWorkspaces(workspacesList.size());
745 toolbar->reconfigure(); 746 toolbar->reconfigure();
@@ -761,7 +762,7 @@ int BScreen::removeLastWorkspace(void) {
761 762
762 wkspc->removeAll(); 763 wkspc->removeAll();
763 764
764 workspacemenu->removeWorkspace(wkspc->getWorkspaceID()); 765 workspacemenu->remove(wkspc->getWorkspaceID()+2); // + 2 is where workspaces starts
765 workspacemenu->update(); 766 workspacemenu->update();
766 767
767 //remove last workspace 768 //remove last workspace