From 052e5d936f4f0056113c239045e9d97bafd84309 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 26 Nov 2014 16:42:50 +0100 Subject: [PATCH] Workspaces: remove "about" menu item. The about box is kept, and can be shown from the replicants. Fixes #8165. --- src/apps/workspaces/Workspaces.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/apps/workspaces/Workspaces.cpp b/src/apps/workspaces/Workspaces.cpp index a396172802..5a2d6bdde6 100644 --- a/src/apps/workspaces/Workspaces.cpp +++ b/src/apps/workspaces/Workspaces.cpp @@ -276,9 +276,9 @@ WorkspacesSettings::_Open(BFile& file, int mode) { BPath path; status_t status = find_directory(B_USER_SETTINGS_DIRECTORY, &path); - if (status != B_OK) + if (status != B_OK) status = find_directory(B_SYSTEM_SETTINGS_DIRECTORY, &path); - if (status != B_OK) + if (status != B_OK) return status; path.Append(kSettingsFile); @@ -343,7 +343,7 @@ WorkspacesView::WorkspacesView(BRect frame, bool showDragger=true) fParentWhichDrawsOnChildren(NULL), fCurrentFrame(frame) { - if(showDragger) { + if (showDragger) { frame.OffsetTo(B_ORIGIN); frame.top = frame.bottom - 7; frame.left = frame.right - 7; @@ -609,16 +609,15 @@ WorkspacesView::MouseDown(BPoint where) if (window->IsAutoRaising()) item->SetMarked(true); if (be_roster->IsRunning(kDeskbarSignature)) { - menu->AddItem(item = new BMenuItem(B_TRANSLATE("Live in the Deskbar"), + menu->AddItem(item = new BMenuItem( + B_TRANSLATE("Live in the Deskbar"), new BMessage(kMsgToggleLiveInDeskbar))); BDeskbar deskbar; item->SetMarked(deskbar.HasItem(kDeskbarItemName)); } menu->AddSeparatorItem(); - menu->AddItem(new BMenuItem(B_TRANSLATE("About Workspaces" - B_UTF8_ELLIPSIS), new BMessage(B_ABOUT_REQUESTED))); - menu->AddItem(new BMenuItem(B_TRANSLATE("Quit"), + menu->AddItem(new BMenuItem(B_TRANSLATE("Quit"), new BMessage(B_QUIT_REQUESTED))); menu->SetTargetForItems(window); } else {