From 9a4b02535e8215a5404299fe74ebc71dcb0de867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 8 Apr 2009 22:18:29 +0000 Subject: [PATCH] * Better defaults: the status window should be visible on all workspaces. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30047 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/mail/MailSettings.cpp | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/kits/mail/MailSettings.cpp b/src/kits/mail/MailSettings.cpp index 0f5ca3aa50..53f45f238d 100644 --- a/src/kits/mail/MailSettings.cpp +++ b/src/kits/mail/MailSettings.cpp @@ -1,6 +1,6 @@ /* * Copyright 2001-2003 Dr. Zoidberg Enterprises. All rights reserved. - * Copyright 2004-2007, Haiku Inc. All rights reserved. + * Copyright 2004-2009, Haiku Inc. All rights reserved. * * Distributed under the terms of the MIT License. */ @@ -10,14 +10,15 @@ #include -#include -#include #include -#include #include +#include +#include +#include +#include #include #include -#include +#include #include #include @@ -34,9 +35,8 @@ namespace MailInternal { // #pragma mark - Chain methods -// -// To do -// + +// TODO! BMailChain* NewMailChain() { @@ -220,7 +220,7 @@ BMailSettings::Reload() path.Path(), strerror(ret)); return ret; } - + // clobber old settings data = tmp; return B_OK; @@ -312,7 +312,11 @@ BMailSettings::SetStatusWindowFrame(BRect frame) int32 BMailSettings::StatusWindowWorkspaces() { - return data.FindInt32("StatusWindowWorkSpace"); + uint32 workspaces; + if (data.FindInt32("StatusWindowWorkSpace", (int32*)&workspaces) != B_OK) + return B_ALL_WORKSPACES; + + return workspaces; }