void PreferencesWindow::MessageReceived(BMessage* message) { switch (message->what) { case kEditMenuInTracker: OpenWithTracker(B_USER_DESKBAR_DIRECTORY); break; case kUpdateRecentCounts: UpdateRecentCounts(); break; case kSuperExpando: EnableDisableDependentItems(); be_app->PostMessage(message); break; case kStateChanged: EnableDisableDependentItems(); break; default: BWindow::MessageReceived(message); break; } }
void DeskbarView::MouseUp(BPoint pos) { if ((fLastButtons & B_PRIMARY_MOUSE_BUTTON) !=0 && OpenWithTracker(B_USER_SETTINGS_DIRECTORY, "Mail/mailbox") != B_OK) { entry_ref ref; _GetNewQueryRef(ref); BMessenger trackerMessenger(kTrackerSignature); BMessage message(B_REFS_RECEIVED); message.AddRef("refs", &ref); trackerMessenger.SendMessage(&message); } if ((fLastButtons & B_TERTIARY_MOUSE_BUTTON) != 0) BMailDaemon().CheckMail(); }