Now listens to team messages under Haiku - apparently, the BeOS registrar detects

the Deskbar, and sends messages to it automatically.
For Haiku, though, we don't want this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13550 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-07-08 01:05:26 +00:00
parent 3182843008
commit 79482d6383
+8
View File
@@ -118,11 +118,19 @@ TBarApp::TBarApp()
// statusview so that all additions to the tray
// follow the same path
fStatusViewMess = BMessenger(fBarWindow->FindView("BarView"));
#ifdef __HAIKU__
be_roster->StartWatching(this);
#endif
}
TBarApp::~TBarApp()
{
#ifdef __HAIKU__
be_roster->StartWatching(this);
#endif
int32 teamCount = sBarTeamInfoList.CountItems();
for (int32 i = 0; i < teamCount; i++) {
BarTeamInfo *barInfo = (BarTeamInfo *)sBarTeamInfoList.ItemAt(i);