mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 17:49:52 +01:00
Add some warnings and excessive Lion checks
This commit is contained in:
@@ -469,6 +469,7 @@
|
||||
#warning image should use new gear
|
||||
NSString * actionImageString;
|
||||
if (fMouseDownActionButton)
|
||||
#warning we can get rid of the on 10.7
|
||||
actionImageString = @"ActionOn.png";
|
||||
else if (!fTracking && fHoverAction)
|
||||
actionImageString = @"ActionHover.png";
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
fMouseControlRow = -1;
|
||||
fMouseRevealRow = -1;
|
||||
fMouseActionRow = -1;
|
||||
#warning we can get rid of the on 10.7
|
||||
fActionPushedRow = -1;
|
||||
|
||||
fActionPopoverShown = NO;
|
||||
@@ -411,14 +412,20 @@
|
||||
//avoid weird behavior when showing menu by doing this after mouse down
|
||||
if (row != -1 && fMouseActionRow == row)
|
||||
{
|
||||
fActionPushedRow = row;
|
||||
[self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down
|
||||
if (![NSApp isOnLionOrBetter])
|
||||
{
|
||||
fActionPushedRow = row;
|
||||
[self setNeedsDisplayInRect: [self rectOfRow: row]]; //ensure button is pushed down
|
||||
}
|
||||
|
||||
#warning maybe make appear on mouse down
|
||||
[self displayTorrentActionPopoverForEvent: event];
|
||||
|
||||
fActionPushedRow = -1;
|
||||
[self setNeedsDisplayInRect: [self rectOfRow: row]];
|
||||
if (![NSApp isOnLionOrBetter])
|
||||
{
|
||||
fActionPushedRow = -1;
|
||||
[self setNeedsDisplayInRect: [self rectOfRow: row]];
|
||||
}
|
||||
}
|
||||
else if (!pushed && [event clickCount] == 2) //double click
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user