* 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user