Bool to bool

This commit is contained in:
fluxgen 2002-02-16 11:28:16 +00:00
parent 4842c8632f
commit b7e31755be
2 changed files with 15 additions and 7 deletions

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// $Id: Workspace.cc,v 1.10 2002/02/10 19:05:12 fluxgen Exp $
// $Id: Workspace.cc,v 1.11 2002/02/16 11:28:16 fluxgen Exp $
// use GNU extensions
#ifndef _GNU_SOURCE
@ -58,6 +58,11 @@
#include <iostream>
using namespace std;
#ifdef DEBUG
#include <iostream>
using namespace std;
#endif
Workspace::Workspace(BScreen *scrn, int i):
screen(scrn),
lastfocus(0),
@ -295,12 +300,12 @@ void Workspace::update(void) {
}
Bool Workspace::isCurrent(void) {
bool Workspace::isCurrent(void) {
return (id == screen->getCurrentWorkspaceID());
}
Bool Workspace::isLastWindow(FluxboxWindow *w) {
bool Workspace::isLastWindow(FluxboxWindow *w) {
return (w == windowList.back());
}
@ -332,14 +337,17 @@ void Workspace::setName(char *new_name) {
clientmenu->update();
}
//------------ shutdown ---------
// Calles restore on all windows
// in the workspace and then
// clears the windowList
//-------------------------------
void Workspace::shutdown(void) {
while (!windowList.empty()) {
windowList.back()->restore();
delete windowList.back(); //delete window (the window removes it self from windowList)
}
}

View file

@ -71,8 +71,8 @@ public:
FluxboxWindow *getWindow(int);
Bool isCurrent(void);
Bool isLastWindow(FluxboxWindow *);
bool isCurrent(void);
bool isLastWindow(FluxboxWindow *);
const int addWindow(FluxboxWindow *, Bool = False);
const int removeWindow(FluxboxWindow *);