1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +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,8 +31,14 @@
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)
location: point
modifierFlags: [event modifierFlags]
timestamp: [event timestamp]
windowNumber: [event windowNumber]