changed to remove/add workspace in Workspacemenu
This commit is contained in:
parent
188d53a879
commit
4921925c17
1 changed files with 9 additions and 7 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Screen.cc,v 1.31 2002/02/26 22:40:31 fluxgen Exp $
|
// $Id: Screen.cc,v 1.32 2002/02/27 23:47:47 fluxgen Exp $
|
||||||
|
|
||||||
// stupid macros needed to access some functions in version 2 of the GNU C
|
// stupid macros needed to access some functions in version 2 of the GNU C
|
||||||
// library
|
// library
|
||||||
|
@ -737,9 +737,9 @@ FluxboxWindow *BScreen::getIcon(int index) {
|
||||||
int BScreen::addWorkspace(void) {
|
int BScreen::addWorkspace(void) {
|
||||||
Workspace *wkspc = new Workspace(this, workspacesList.size());
|
Workspace *wkspc = new Workspace(this, workspacesList.size());
|
||||||
workspacesList.push_back(wkspc);
|
workspacesList.push_back(wkspc);
|
||||||
|
//add workspace to workspacemenu
|
||||||
workspacemenu->insert(wkspc->getName(), wkspc->getMenu(),
|
workspacemenu->addWorkspace(wkspc);
|
||||||
wkspc->getWorkspaceID() + 1);
|
|
||||||
workspacemenu->update();
|
workspacemenu->update();
|
||||||
saveWorkspaces(workspacesList.size());
|
saveWorkspaces(workspacesList.size());
|
||||||
toolbar->reconfigure();
|
toolbar->reconfigure();
|
||||||
|
@ -761,10 +761,11 @@ int BScreen::removeLastWorkspace(void) {
|
||||||
|
|
||||||
wkspc->removeAll();
|
wkspc->removeAll();
|
||||||
|
|
||||||
workspacemenu->remove(wkspc->getWorkspaceID() + 2);
|
workspacemenu->removeWorkspace(wkspc->getWorkspaceID());
|
||||||
workspacemenu->update();
|
workspacemenu->update();
|
||||||
|
|
||||||
workspacesList.erase(workspacesList.begin() + wkspc->getWorkspaceID());
|
//remove last workspace
|
||||||
|
workspacesList.pop_back();
|
||||||
delete wkspc;
|
delete wkspc;
|
||||||
|
|
||||||
toolbar->reconfigure();
|
toolbar->reconfigure();
|
||||||
|
@ -1835,3 +1836,4 @@ void BScreen::updateGnomeClientList() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //!GNOME
|
#endif //!GNOME
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue