Update timeView popup menu
This commit is contained in:
parent
573f748c5f
commit
2a2dc95aa1
@ -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"),
|
||||
|
@ -410,23 +410,17 @@ 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);
|
||||
item = new BMenuItem(B_TRANSLATE("Change time" B_UTF8_ELLIPSIS),
|
||||
new BMessage(kChangeTime));
|
||||
menu->AddItem(item);
|
||||
|
||||
item = new BMenuItem(B_TRANSLATE("Hide time"),
|
||||
new BMessage(kShowHideTime));
|
||||
menu->AddItem(item);
|
||||
item = new BMenuItem(B_TRANSLATE("Hide time"),
|
||||
new BMessage(kShowHideTime));
|
||||
menu->AddItem(item);
|
||||
|
||||
item = new BMenuItem(B_TRANSLATE("Show calendar" B_UTF8_ELLIPSIS),
|
||||
new BMessage(kShowCalendar));
|
||||
menu->AddItem(item);
|
||||
}
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user