aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-02-28 15:44:39 (GMT)
committerfluxgen <fluxgen>2002-02-28 15:44:39 (GMT)
commit34b2b9637be9daf8fe51ad83dc1796c2cb071527 (patch)
tree04a26eee0052a0cc7a63145452e199244abdb978
parent4921925c17eb45bff61c61bd7d16590b5bf38bbb (diff)
downloadfluxbox-34b2b9637be9daf8fe51ad83dc1796c2cb071527.zip
fluxbox-34b2b9637be9daf8fe51ad83dc1796c2cb071527.tar.bz2
removed add/removeWorkspace and fixed indent
-rw-r--r--src/Workspacemenu.cc15
-rw-r--r--src/Workspacemenu.hh14
2 files changed, 6 insertions, 23 deletions
diff --git a/src/Workspacemenu.cc b/src/Workspacemenu.cc
index dace287..05f5072 100644
--- a/src/Workspacemenu.cc
+++ b/src/Workspacemenu.cc
@@ -86,18 +86,3 @@ void Workspacemenu::itemSelected(int button, int index) {
86 } 86 }
87} 87}
88 88
89void Workspacemenu::removeWorkspace(unsigned int id) {
90 if (id<getCount()) {
91 remove(id+2); // + 2 is where workspaces starts
92 #ifdef DEBUG
93 using namespace std;
94 cerr<<__FILE__<<"("<<__LINE__<<"): Removing "<<id<<endl;
95 #endif
96 }
97}
98
99void Workspacemenu::addWorkspace(Workspace *wkspc) {
100 assert(wkspc);
101 insert(wkspc->getName(), wkspc->getMenu(),
102 wkspc->getWorkspaceID() + 2);
103}
diff --git a/src/Workspacemenu.hh b/src/Workspacemenu.hh
index 80732b2..26060c5 100644
--- a/src/Workspacemenu.hh
+++ b/src/Workspacemenu.hh
@@ -15,29 +15,27 @@
15// 15//
16// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22// DEALINGS IN THE SOFTWARE. 22// DEALINGS IN THE SOFTWARE.
23 23
24#ifndef WORKSPACEMENU_HH 24#ifndef WORKSPACEMENU_HH
25#define WORKSPACEMENU_HH 25#define WORKSPACEMENU_HH
26 26
27#include "Basemenu.hh" 27#include "Basemenu.hh"
28class Workspace; 28class Workspace;
29 29
30class Workspacemenu : public Basemenu { 30class Workspacemenu : public Basemenu {
31private: 31private:
32 BScreen *screen; 32 BScreen *screen;
33 33
34protected: 34protected:
35 virtual void itemSelected(int, int); 35 virtual void itemSelected(int, int);
36 36
37public: 37public:
38 Workspacemenu(BScreen *); 38 Workspacemenu(BScreen *);
39 void removeWorkspace(unsigned int id);
40 void addWorkspace(Workspace *wkspc);
41}; 39};
42 40
43 41