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:
@@ -118,11 +118,19 @@ TBarApp::TBarApp()
|
|||||||
// statusview so that all additions to the tray
|
// statusview so that all additions to the tray
|
||||||
// follow the same path
|
// follow the same path
|
||||||
fStatusViewMess = BMessenger(fBarWindow->FindView("BarView"));
|
fStatusViewMess = BMessenger(fBarWindow->FindView("BarView"));
|
||||||
|
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
be_roster->StartWatching(this);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TBarApp::~TBarApp()
|
TBarApp::~TBarApp()
|
||||||
{
|
{
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
be_roster->StartWatching(this);
|
||||||
|
#endif
|
||||||
|
|
||||||
int32 teamCount = sBarTeamInfoList.CountItems();
|
int32 teamCount = sBarTeamInfoList.CountItems();
|
||||||
for (int32 i = 0; i < teamCount; i++) {
|
for (int32 i = 0; i < teamCount; i++) {
|
||||||
BarTeamInfo *barInfo = (BarTeamInfo *)sBarTeamInfoList.ItemAt(i);
|
BarTeamInfo *barInfo = (BarTeamInfo *)sBarTeamInfoList.ItemAt(i);
|
||||||
|
|||||||
Reference in New Issue
Block a user