From 0d2ac94c4df1061e1f2b835703f018553c929744 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Tue, 17 Apr 2012 23:08:35 -0400 Subject: [PATCH] Rename the TReplicantTray view "_deskbar_rt_" instead of "_replicant_tray_". That follows the convention a bit better and is less likely to cause name collisions. While I am at it put the BView line below the : as is our usual convention. --- src/apps/deskbar/BarApp.cpp | 2 +- src/apps/deskbar/StatusView.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/apps/deskbar/BarApp.cpp b/src/apps/deskbar/BarApp.cpp index 0c348aafe1..ba3e76684d 100644 --- a/src/apps/deskbar/BarApp.cpp +++ b/src/apps/deskbar/BarApp.cpp @@ -640,7 +640,7 @@ TBarApp::MessageReceived(BMessage* message) if (message->FindBool("filesys", &localize) == B_OK) gLocalizedNamePreferred = localize; - BMessenger(fBarWindow->FindView("_replicant_tray_")).SendMessage( + 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 diff --git a/src/apps/deskbar/StatusView.cpp b/src/apps/deskbar/StatusView.cpp index e47c3f2001..aad0290564 100644 --- a/src/apps/deskbar/StatusView.cpp +++ b/src/apps/deskbar/StatusView.cpp @@ -124,8 +124,9 @@ DumpList(BList* itemlist) // don't change the name of this view to anything other than "Status"! TReplicantTray::TReplicantTray(TBarView* parent, bool vertical) - : BView(BRect(0, 0, 1, 1), "_replicant_tray_", - B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_FRAME_EVENTS), + : + BView(BRect(0, 0, 1, 1), "_deskbar_rt_", B_FOLLOW_LEFT | B_FOLLOW_TOP, + B_WILL_DRAW | B_FRAME_EVENTS), fTime(NULL), fBarView(parent), fShelf(new TReplicantShelf(this)),