removed add/removeWorkspace and fixed indent
This commit is contained in:
parent
4921925c17
commit
34b2b9637b
2 changed files with 6 additions and 23 deletions
|
@ -86,18 +86,3 @@ void Workspacemenu::itemSelected(int button, int index) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspacemenu::removeWorkspace(unsigned int id) {
|
|
||||||
if (id<getCount()) {
|
|
||||||
remove(id+2); // + 2 is where workspaces starts
|
|
||||||
#ifdef DEBUG
|
|
||||||
using namespace std;
|
|
||||||
cerr<<__FILE__<<"("<<__LINE__<<"): Removing "<<id<<endl;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void Workspacemenu::addWorkspace(Workspace *wkspc) {
|
|
||||||
assert(wkspc);
|
|
||||||
insert(wkspc->getName(), wkspc->getMenu(),
|
|
||||||
wkspc->getWorkspaceID() + 2);
|
|
||||||
}
|
|
||||||
|
|
|
@ -36,8 +36,6 @@ protected:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Workspacemenu(BScreen *);
|
Workspacemenu(BScreen *);
|
||||||
void removeWorkspace(unsigned int id);
|
|
||||||
void addWorkspace(Workspace *wkspc);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue