Changeset 7124


Ignore:
Timestamp:
Nov 17, 2008, 3:20:15 AM (12 years ago)
Author:
livings124
Message:

trivial torrent table change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r7080 r7124  
    4444@interface TorrentTableView (Private)
    4545
     46//unused on Leopard
    4647- (BOOL) pointInControlRect: (NSPoint) point;
    4748- (BOOL) pointInRevealRect: (NSPoint) point;
     
    305306}
    306307
    307 //when Leopard-only, use these variables instead of pointInActionRect:, etc.
    308308- (void) mouseEntered: (NSEvent *) event
    309309{
     
    377377{
    378378    NSPoint point = [self convertPoint: [event locationInWindow] fromView: nil];
     379    const NSInteger row = [self rowAtPoint: point];
    379380   
    380381    //check to toggle group status before anything else
     
    387388    }
    388389   
    389     BOOL pushed = [self pointInControlRect: point] || [self pointInRevealRect: point] || [self pointInActionRect: point];
     390    BOOL pushed;
     391    if ([NSApp isOnLeopardOrBetter])
     392        pushed = fMouseActionRow == row || fMouseRevealRow == row || fMouseControlRow == row;
     393    else
     394        pushed = [self pointInControlRect: point] || [self pointInRevealRect: point] || [self pointInActionRect: point];
    390395   
    391396    //if pushing a button, don't change the selected rows
     
    401406    if ([self pointInActionRect: point])
    402407    {
    403         NSInteger row = [self rowAtPoint: point];
    404        
    405408        fActionPushedRow = row;
    406409        [self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down
     
    414417    {
    415418        id item = nil;
    416         NSInteger row = [self rowAtPoint: point];
    417419        if (row != -1)
    418420            item = [self itemAtRow: row];
Note: See TracChangeset for help on using the changeset viewer.