update NEWS and add a little efficiency for the last commit
This commit is contained in:
parent
1f862a70e6
commit
4a6c14bc01
1
NEWS
1
NEWS
|
@ -3,6 +3,7 @@ NEWS file for Transmission <http://transmission.m0k.org/>
|
||||||
1.10 (2008/xx/yy)
|
1.10 (2008/xx/yy)
|
||||||
- OS X:
|
- OS X:
|
||||||
+ Window when adding torrents to select files and other settings
|
+ Window when adding torrents to select files and other settings
|
||||||
|
+ Leopard: Fix to allow double-clicking the icon to reveal in Finder, double-clicking the progress string to toggle between selected and total progress, and double-clicking anywhere else to toggle the inspector
|
||||||
|
|
||||||
1.01 (2008/xx/yy)
|
1.01 (2008/xx/yy)
|
||||||
- All Platforms:
|
- All Platforms:
|
||||||
|
|
|
@ -100,7 +100,6 @@
|
||||||
|
|
||||||
- (void) mouseDown: (NSEvent *) event
|
- (void) mouseDown: (NSEvent *) event
|
||||||
{
|
{
|
||||||
NSLog(@"down");
|
|
||||||
fClickPoint = [self convertPoint: [event locationInWindow] fromView: nil];
|
fClickPoint = [self convertPoint: [event locationInWindow] fromView: nil];
|
||||||
|
|
||||||
if ([self pointInActionRect: fClickPoint])
|
if ([self pointInActionRect: fClickPoint])
|
||||||
|
@ -147,9 +146,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) mouseUp: (NSEvent *) event
|
- (void) mouseUp: (NSEvent *) event
|
||||||
|
{
|
||||||
|
int oldRow;
|
||||||
|
if (fClickIn)
|
||||||
{
|
{
|
||||||
NSPoint point = [self convertPoint: [event locationInWindow] fromView: nil];
|
NSPoint point = [self convertPoint: [event locationInWindow] fromView: nil];
|
||||||
int row = [self rowAtPoint: point], oldRow = [self rowAtPoint: fClickPoint];
|
int row = [self rowAtPoint: point];
|
||||||
|
oldRow = [self rowAtPoint: fClickPoint];
|
||||||
|
|
||||||
if (row == oldRow && [self pointInPauseRect: point] && [self pointInPauseRect: fClickPoint])
|
if (row == oldRow && [self pointInPauseRect: point] && [self pointInPauseRect: fClickPoint])
|
||||||
{
|
{
|
||||||
|
@ -170,11 +173,17 @@
|
||||||
else if (row == oldRow && [self pointInRevealRect: point] && [self pointInRevealRect: fClickPoint])
|
else if (row == oldRow && [self pointInRevealRect: point] && [self pointInRevealRect: fClickPoint])
|
||||||
[[fTorrents objectAtIndex: row] revealData];
|
[[fTorrents objectAtIndex: row] revealData];
|
||||||
else;
|
else;
|
||||||
|
}
|
||||||
|
|
||||||
[super mouseUp: event];
|
[super mouseUp: event];
|
||||||
|
|
||||||
fClickPoint = NSZeroPoint;
|
fClickPoint = NSZeroPoint;
|
||||||
|
|
||||||
|
#warning need fClickIn?
|
||||||
|
BOOL wasClickIn = fClickIn;
|
||||||
fClickIn = NO;
|
fClickIn = NO;
|
||||||
|
|
||||||
|
if (wasClickIn)
|
||||||
[self setNeedsDisplayInRect: [self rectOfRow: oldRow]];
|
[self setNeedsDisplayInRect: [self rectOfRow: oldRow]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue