* Amazing: François writes almost style compliant code! :-)

* Minor cleanup - I haven't written SystemInfoHandler, François did.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25017 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-04-18 11:08:34 +00:00
parent aa01c3e72e
commit 6f6ba87580
4 changed files with 53 additions and 49 deletions
+5 -3
View File
@@ -184,7 +184,7 @@ ActivityView::_Init(const BMessage* settings)
fDrawInterval = kInitialRefreshInterval * 2;
fLastRefresh = 0;
fDrawResolution = 1;
fSystemInfoHandler = new SystemInfoHandler;
if (settings == NULL
@@ -354,7 +354,8 @@ void
ActivityView::AttachedToWindow()
{
Looper()->AddHandler(fSystemInfoHandler);
fSystemInfoHandler->StartWatchingStuff();
fSystemInfoHandler->StartWatching();
BMessage refresh(kMsgRefresh);
fRunner = new BMessageRunner(this, &refresh, fRefreshInterval);
@@ -365,8 +366,9 @@ ActivityView::AttachedToWindow()
void
ActivityView::DetachedFromWindow()
{
fSystemInfoHandler->StopWatchingStuff();
fSystemInfoHandler->StopWatching();
Looper()->RemoveHandler(fSystemInfoHandler);
delete fRunner;
}