mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
Adds stop at ratio, Adds sorting by name, date or state, Seperates Info window into its own nib, Adds option to enable or disabled autostarting downloads, Seperates Network / Transfers in the Preferences
34 lines
903 B
Objective-C
34 lines
903 B
Objective-C
#import "MenuButton.h"
|
|
|
|
@implementation MenuButton
|
|
|
|
- (void) mouseDown: (NSEvent *) event
|
|
{
|
|
[self setState: NSOnState];
|
|
[self highlight: YES];
|
|
|
|
NSPoint location = NSMakePoint(3, -2);
|
|
|
|
NSEvent * theEvent= [NSEvent mouseEventWithType: [event type]
|
|
location: location
|
|
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: theEvent forView: self];
|
|
|
|
[self setState: NSOffState];
|
|
[self highlight: NO];
|
|
}
|
|
|
|
- (NSMenu *) menuForEvent: (NSEvent *) e
|
|
{
|
|
return nil;
|
|
}
|
|
|
|
@end
|