Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d8269a05
Commit
d8269a05
authored
May 29, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
May 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Add Hide, Hide Others, and Show All items to the application menu.
parent
c3d2e430
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
cocoa_app.m
dlls/winemac.drv/cocoa_app.m
+16
-0
No files found.
dlls/winemac.drv/cocoa_app.m
View file @
d8269a05
...
...
@@ -205,8 +205,23 @@ int macdrv_err_on;
mainMenu
=
[[[
NSMenu
alloc
]
init
]
autorelease
];
// Application menu
submenu
=
[[[
NSMenu
alloc
]
initWithTitle
:
@"Wine"
]
autorelease
];
bundleName
=
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:(
NSString
*
)
kCFBundleNameKey
];
if
([
bundleName
length
])
title
=
[
NSString
stringWithFormat
:
@"Hide %@"
,
bundleName
];
else
title
=
@"Hide"
;
item
=
[
submenu
addItemWithTitle
:
title
action
:
@selector
(
hide
:
)
keyEquivalent
:
@""
];
item
=
[
submenu
addItemWithTitle
:
@"Hide Others"
action
:
@selector
(
hideOtherApplications
:
)
keyEquivalent
:
@"h"
];
[
item
setKeyEquivalentModifierMask
:
NSCommandKeyMask
|
NSAlternateKeyMask
];
item
=
[
submenu
addItemWithTitle
:
@"Show All"
action
:
@selector
(
unhideAllApplications
:
)
keyEquivalent
:
@""
];
[
submenu
addItem
:[
NSMenuItem
separatorItem
]];
if
([
bundleName
length
])
title
=
[
NSString
stringWithFormat
:
@"Quit %@"
,
bundleName
];
else
...
...
@@ -218,6 +233,7 @@ int macdrv_err_on;
[
item
setSubmenu
:
submenu
];
[
mainMenu
addItem
:
item
];
// Window menu
submenu
=
[[[
NSMenu
alloc
]
initWithTitle
:
@"Window"
]
autorelease
];
[
submenu
addItemWithTitle
:
@"Minimize"
action
:
@selector
(
performMiniaturize
:
)
keyEquivalent
:
@""
];
[
submenu
addItemWithTitle
:
@"Zoom"
action
:
@selector
(
performZoom
:
)
keyEquivalent
:
@""
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment