mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
Simplify new Open menu item text.
This commit is contained in:
parent
2ac14534bb
commit
ee45191676
3 changed files with 15 additions and 9 deletions
2
macosx/English.lproj/MainMenu.nib/info.nib
generated
2
macosx/English.lproj/MainMenu.nib/info.nib
generated
|
@ -31,8 +31,8 @@
|
|||
<integer>3</integer>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>21</integer>
|
||||
<integer>29</integer>
|
||||
<integer>21</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>8J135</string>
|
||||
|
|
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
Binary file not shown.
|
@ -31,15 +31,21 @@
|
|||
NSImage * image = [self image];
|
||||
[self setImage: [self alternateImage]];
|
||||
|
||||
//approximate height of menu...alright for now
|
||||
/*float menuHeight = ((float)[[self menu] numberOfItems] + 2.0) * [NSMenuView menuBarHeight];
|
||||
BOOL moveToTop = menuHeight > [[self window] frame].origin.y;*/
|
||||
|
||||
NSPoint point = NSMakePoint(3.0, /*moveToTop ? [self frame].size.height + menuHeight :*/ -2.0);
|
||||
|
||||
NSEvent * newEvent= [NSEvent mouseEventWithType: [event type]
|
||||
location: NSMakePoint(3, -2)
|
||||
modifierFlags: [event modifierFlags]
|
||||
timestamp: [event timestamp]
|
||||
windowNumber: [event windowNumber]
|
||||
context: [event context]
|
||||
eventNumber: [event eventNumber]
|
||||
clickCount: [event clickCount]
|
||||
pressure: [event pressure]];
|
||||
location: point
|
||||
modifierFlags: [event modifierFlags]
|
||||
timestamp: [event timestamp]
|
||||
windowNumber: [event windowNumber]
|
||||
context: [event context]
|
||||
eventNumber: [event eventNumber]
|
||||
clickCount: [event clickCount]
|
||||
pressure: [event pressure]];
|
||||
|
||||
[NSMenu popUpContextMenu: [self menu] withEvent: newEvent forView: self];
|
||||
|
||||
|
|
Loading…
Reference in a new issue