diff --git a/src/apps/deskbar/BarApp.cpp b/src/apps/deskbar/BarApp.cpp index ae9b45c6a1..a12cf60d8f 100644 --- a/src/apps/deskbar/BarApp.cpp +++ b/src/apps/deskbar/BarApp.cpp @@ -634,11 +634,10 @@ TBarApp::MessageReceived(BMessage* message) if (message->FindBool("filesys", &localize) == B_OK) gLocalizedNamePreferred = localize; - BMessenger(fBarWindow->FindView("_deskbar_rt_")).SendMessage( - message); - // Notify the replicant tray that the time interval has - // changed and it should update the time view and reflow - // the tray icons. + fStatusViewMessenger.SendMessage(message); + // Notify the replicant tray (through BarView) that the time + // interval has changed and it should update the time view + // and reflow the tray icons. break; } diff --git a/src/apps/deskbar/BarView.cpp b/src/apps/deskbar/BarView.cpp index 2fe13a6e06..f18d2be440 100644 --- a/src/apps/deskbar/BarView.cpp +++ b/src/apps/deskbar/BarView.cpp @@ -44,6 +44,7 @@ All rights reserved. #include #include #include +#include #include #include #include @@ -154,6 +155,10 @@ void TBarView::MessageReceived(BMessage* message) { switch (message->what) { + case B_LOCALE_CHANGED: + fReplicantTray->MessageReceived(message); + break; + case B_REFS_RECEIVED: // received when an item is selected during DnD // message is targeted here from Be menu diff --git a/src/apps/deskbar/StatusView.cpp b/src/apps/deskbar/StatusView.cpp index 3747b415e6..dd95966717 100644 --- a/src/apps/deskbar/StatusView.cpp +++ b/src/apps/deskbar/StatusView.cpp @@ -125,7 +125,7 @@ DumpList(BList* itemlist) TReplicantTray::TReplicantTray(TBarView* parent, bool vertical) : - BView(BRect(0, 0, 1, 1), "_deskbar_rt_", B_FOLLOW_LEFT | B_FOLLOW_TOP, + BView(BRect(0, 0, 1, 1), "Status", B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_FRAME_EVENTS), fTime(NULL), fBarView(parent),