From 79482d638368bfebaf90649034ff12a4d53ff7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 8 Jul 2005 01:05:26 +0000 Subject: [PATCH] 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 --- src/apps/deskbar/BarApp.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/apps/deskbar/BarApp.cpp b/src/apps/deskbar/BarApp.cpp index c4dc167fb5..42177283d7 100644 --- a/src/apps/deskbar/BarApp.cpp +++ b/src/apps/deskbar/BarApp.cpp @@ -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);