mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
simplify the mess of code that is the pieces view
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "Torrent.h"
|
||||
|
||||
@interface PiecesView : NSObject
|
||||
@interface PiecesView : NSImageView
|
||||
{
|
||||
int8_t * fPieces;
|
||||
|
||||
@@ -35,12 +35,9 @@
|
||||
|
||||
Torrent * fTorrent;
|
||||
int fNumPieces, fAcross, fWidth, fExtraBorder;
|
||||
|
||||
IBOutlet NSImageView * fImageView;
|
||||
}
|
||||
|
||||
- (void) setTorrent: (Torrent *) torrent;
|
||||
- (void) updateView: (BOOL) first;
|
||||
- (void) toggleView;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user