mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
tweaks to showing priority selector
This commit is contained in:
@@ -117,11 +117,14 @@
|
||||
[self removeTrackingArea: area];
|
||||
}
|
||||
|
||||
NSRange visibleRows = [self rowsInRect: [self visibleRect]];
|
||||
if (visibleRows.length == 0){NSLog(@"asdgshs");
|
||||
return;}
|
||||
|
||||
int col = [self columnWithIdentifier: @"Priority"];
|
||||
NSTrackingAreaOptions options = NSTrackingEnabledDuringMouseDrag | NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways;
|
||||
NSPoint mouseLocation = [self convertPoint: [[self window] convertScreenToBase: [NSEvent mouseLocation]] fromView: nil];
|
||||
|
||||
NSRange visibleRows = [self rowsInRect: [self visibleRect]];
|
||||
int row;
|
||||
for (row = visibleRows.location; row < NSMaxRange(visibleRows); row++)
|
||||
{
|
||||
|
||||
@@ -90,14 +90,13 @@
|
||||
{
|
||||
NSTrackingAreaOptions options = NSTrackingEnabledDuringMouseDrag | NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways;
|
||||
|
||||
BOOL mouseIsInside = NSMouseInRect(mouseLocation, cellFrame, [controlView isFlipped]);
|
||||
if (mouseIsInside)
|
||||
if (NSMouseInRect(mouseLocation, cellFrame, [controlView isFlipped]))
|
||||
{
|
||||
options |= NSTrackingAssumeInside;
|
||||
[controlView setNeedsDisplayInRect:cellFrame];
|
||||
[controlView setNeedsDisplayInRect: cellFrame];
|
||||
}
|
||||
|
||||
NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect: cellFrame options: options owner: controlView userInfo: userInfo];
|
||||
NSTrackingArea * area = [[NSTrackingArea alloc] initWithRect: cellFrame options: options owner: controlView userInfo: userInfo];
|
||||
[controlView addTrackingArea: area];
|
||||
[area release];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user