mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
return of double-click for inspector, double-click icon to reveal file, and double-click progress string to toggle selected and total status
This commit is contained in:
@@ -8,6 +8,7 @@ NEWS file for Transmission <http://transmission.m0k.org/>
|
||||
- All Platforms:
|
||||
+ Fix 1.00 freezing issue
|
||||
+ Fix 1.00 assertion failure
|
||||
+ Improve initial connection speed
|
||||
+ Improve reconnection to peers with imperfect network connections
|
||||
+ Fix crashes on architectures that require strict alignment
|
||||
- OS X:
|
||||
|
||||
+17
-16
@@ -100,6 +100,7 @@
|
||||
|
||||
- (void) mouseDown: (NSEvent *) event
|
||||
{
|
||||
NSLog(@"down");
|
||||
fClickPoint = [self convertPoint: [event locationInWindow] fromView: nil];
|
||||
|
||||
if ([self pointInActionRect: fClickPoint])
|
||||
@@ -125,15 +126,28 @@
|
||||
fClickPoint = NSZeroPoint;
|
||||
[self reloadData];
|
||||
}
|
||||
|
||||
|
||||
[super mouseDown: event];
|
||||
|
||||
if ([event clickCount] == 2 && !NSEqualPoints(fClickPoint, NSZeroPoint))
|
||||
{
|
||||
if ([self pointInProgressRect: fClickPoint])
|
||||
{
|
||||
[fDefaults setBool: ![fDefaults boolForKey: @"DisplayStatusProgressSelected"] forKey: @"DisplayStatusProgressSelected"];
|
||||
[self reloadData];
|
||||
}
|
||||
else if ([self pointInIconRect: fClickPoint])
|
||||
[[fTorrents objectAtIndex: [self rowAtPoint: fClickPoint]] revealData];
|
||||
else if (![self pointInActionRect: fClickPoint])
|
||||
[fController showInfo: nil];
|
||||
else;
|
||||
}
|
||||
else;
|
||||
}
|
||||
}
|
||||
|
||||
#warning not working on Leopard
|
||||
- (void) mouseUp: (NSEvent *) event
|
||||
{
|
||||
//NSLog(@"up");
|
||||
NSPoint point = [self convertPoint: [event locationInWindow] fromView: nil];
|
||||
int row = [self rowAtPoint: point], oldRow = [self rowAtPoint: fClickPoint];
|
||||
|
||||
@@ -155,19 +169,6 @@
|
||||
}
|
||||
else if (row == oldRow && [self pointInRevealRect: point] && [self pointInRevealRect: fClickPoint])
|
||||
[[fTorrents objectAtIndex: row] revealData];
|
||||
else if ([event clickCount] == 2 && !NSEqualPoints(fClickPoint, NSZeroPoint))
|
||||
{
|
||||
if ([self pointInProgressRect: fClickPoint])
|
||||
{
|
||||
[fDefaults setBool: ![fDefaults boolForKey: @"DisplayStatusProgressSelected"] forKey: @"DisplayStatusProgressSelected"];
|
||||
[self reloadData];
|
||||
}
|
||||
else if ([self pointInIconRect: point])
|
||||
[[fTorrents objectAtIndex: row] revealData];
|
||||
else if (![self pointInActionRect: point])
|
||||
[fController showInfo: nil];
|
||||
else;
|
||||
}
|
||||
else;
|
||||
|
||||
[super mouseUp: event];
|
||||
|
||||
Reference in New Issue
Block a user