1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

fix hovering over the pause/resume button in non-compact view

This commit is contained in:
Mitchell Livingston 2010-04-02 18:14:46 +00:00
parent 05cf5fccef
commit 19d1e5dc23

View file

@ -246,6 +246,7 @@
[controlView addTrackingArea: area];
[rowInfo release];
[area release];
}
//control button
NSRect controlButtonRect = [self controlButtonRectForBounds: cellFrame];
@ -258,12 +259,11 @@
NSMutableDictionary * controlInfo = [userInfo mutableCopy];
[controlInfo setObject: @"Control" forKey: @"Type"];
area = [[NSTrackingArea alloc] initWithRect: controlButtonRect options: controlOptions owner: controlView
NSTrackingArea * area = [[NSTrackingArea alloc] initWithRect: controlButtonRect options: controlOptions owner: controlView
userInfo: controlInfo];
[controlView addTrackingArea: area];
[controlInfo release];
[area release];
}
//reveal button
NSRect revealButtonRect = [self revealButtonRectForBounds: cellFrame];
@ -276,7 +276,7 @@
NSMutableDictionary * revealInfo = [userInfo mutableCopy];
[revealInfo setObject: @"Reveal" forKey: @"Type"];
NSTrackingArea * area = [[NSTrackingArea alloc] initWithRect: revealButtonRect options: revealOptions owner: controlView
area = [[NSTrackingArea alloc] initWithRect: revealButtonRect options: revealOptions owner: controlView
userInfo: revealInfo];
[controlView addTrackingArea: area];
[revealInfo release];