Update timeView popup menu

This commit is contained in:
John Scipione 2012-04-10 01:27:38 -04:00
parent 573f748c5f
commit 2a2dc95aa1
2 changed files with 10 additions and 16 deletions

View File

@ -371,7 +371,7 @@ TReplicantTray::ShowReplicantMenu(BPoint point)
// If clock is visible show the extended menu, otherwise show "Show Time"
if (fTime != NULL)
if (!fTime->IsHidden())
fTime->ShowTimeOptions(ConvertToScreen(point));
else {
BMenuItem* item = new BMenuItem(B_TRANSLATE("Show Time"),

View File

@ -410,11 +410,6 @@ TTimeView::ShowTimeOptions(BPoint point)
menu->SetFont(be_plain_font);
BMenuItem* item;
if (IsHidden()) {
item = new BMenuItem(B_TRANSLATE("Show time"),
new BMessage(kShowHideTime));
menu->AddItem(item);
} else {
item = new BMenuItem(B_TRANSLATE("Change time" B_UTF8_ELLIPSIS),
new BMessage(kChangeTime));
menu->AddItem(item);
@ -426,7 +421,6 @@ TTimeView::ShowTimeOptions(BPoint point)
item = new BMenuItem(B_TRANSLATE("Show calendar" B_UTF8_ELLIPSIS),
new BMessage(kShowCalendar));
menu->AddItem(item);
}
menu->SetTargetForItems(this);
// Changed to accept screen coord system point;