mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
get reordering of torrent queue working again in trunk (thanks to cocoadev mailing list)
This commit is contained in:
@@ -2094,7 +2094,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||
}
|
||||
}
|
||||
|
||||
#warning look into
|
||||
- (void) setLimitGlobalEnabled: (id) sender
|
||||
{
|
||||
[fPrefsController applySpeedSettings: nil];
|
||||
@@ -2260,7 +2259,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||
return nil;
|
||||
}
|
||||
|
||||
#warning not working in Leopard
|
||||
- (BOOL) tableView: (NSTableView *) tableView writeRowsWithIndexes: (NSIndexSet *) indexes toPasteboard: (NSPasteboard *) pasteboard
|
||||
{
|
||||
//only allow reordering of rows if sorting by order with no filter
|
||||
@@ -2269,8 +2267,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||
&& [[fSearchFilterField stringValue] length] == 0)
|
||||
{
|
||||
[pasteboard declareTypes: [NSArray arrayWithObject: TORRENT_TABLE_VIEW_DATA_TYPE] owner: self];
|
||||
[pasteboard setData: [NSKeyedArchiver archivedDataWithRootObject: indexes]
|
||||
forType: TORRENT_TABLE_VIEW_DATA_TYPE];
|
||||
[pasteboard setData: [NSKeyedArchiver archivedDataWithRootObject: indexes] forType: TORRENT_TABLE_VIEW_DATA_TYPE];
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
|
||||
2
macosx/English.lproj/MainMenu.nib/info.nib
generated
2
macosx/English.lproj/MainMenu.nib/info.nib
generated
@@ -10,7 +10,7 @@
|
||||
<integer>5</integer>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>1326</integer>
|
||||
<integer>236</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>9A581</string>
|
||||
|
||||
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
Binary file not shown.
@@ -156,6 +156,11 @@
|
||||
inBounds: bounds];
|
||||
}
|
||||
|
||||
- (NSUInteger) hitTestForEvent: (NSEvent *) event inRect: (NSRect) cellFrame ofView: (NSView *) controlView
|
||||
{
|
||||
return NSCellHitContentArea;
|
||||
}
|
||||
|
||||
- (void) drawInteriorWithFrame: (NSRect) cellFrame inView: (NSView *) controlView
|
||||
{
|
||||
[super drawInteriorWithFrame: cellFrame inView: controlView];
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
#warning not always working
|
||||
#warning not working on Leopard
|
||||
- (void) mouseUp: (NSEvent *) event
|
||||
{
|
||||
//NSLog(@"up");
|
||||
|
||||
Reference in New Issue
Block a user