1
0
Fork 0
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:
Mitchell Livingston 2006-08-02 00:29:10 +00:00
parent 2ac14534bb
commit ee45191676
3 changed files with 15 additions and 9 deletions

View file

@ -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>

Binary file not shown.

View file

@ -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];