don't hardcode min and max sizes for the inspector
This commit is contained in:
parent
e406ece219
commit
cab06a5b29
|
@ -70,8 +70,6 @@
|
||||||
#define DOCK_SEEDING_TAG 101
|
#define DOCK_SEEDING_TAG 101
|
||||||
#define DOCK_DOWNLOADING_TAG 102
|
#define DOCK_DOWNLOADING_TAG 102
|
||||||
|
|
||||||
#define ANNOUNCE_WAIT_INTERVAL_SECONDS -60.0
|
|
||||||
|
|
||||||
#define WEBSITE_URL @"http://transmission.m0k.org/"
|
#define WEBSITE_URL @"http://transmission.m0k.org/"
|
||||||
#define FORUM_URL @"http://transmission.m0k.org/forum/"
|
#define FORUM_URL @"http://transmission.m0k.org/forum/"
|
||||||
|
|
||||||
|
@ -1324,8 +1322,8 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
NSDate * date;
|
NSDate * date;
|
||||||
while ((torrent = [enumerator nextObject]))
|
while ((torrent = [enumerator nextObject]))
|
||||||
{
|
{
|
||||||
if ([torrent canAnnounce])
|
if ([torrent canManualAnnounce])
|
||||||
[torrent announce];
|
[torrent manualAnnounce];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2883,7 +2881,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
//enable announce item
|
//enable manual announce item
|
||||||
if (action == @selector(announceSelectedTorrents:))
|
if (action == @selector(announceSelectedTorrents:))
|
||||||
{
|
{
|
||||||
if (!canUseTable)
|
if (!canUseTable)
|
||||||
|
@ -2895,7 +2893,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
while ((torrent = [enumerator nextObject]))
|
while ((torrent = [enumerator nextObject]))
|
||||||
{
|
{
|
||||||
//time interval returned will be negative
|
//time interval returned will be negative
|
||||||
if ([torrent canAnnounce])
|
if ([torrent canManualAnnounce])
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
return NO;
|
return NO;
|
||||||
|
|
|
@ -27,9 +27,6 @@
|
||||||
#import "FilePriorityCell.h"
|
#import "FilePriorityCell.h"
|
||||||
#import "StringAdditions.h"
|
#import "StringAdditions.h"
|
||||||
|
|
||||||
#define MIN_WINDOW_WIDTH 300
|
|
||||||
#define MAX_WINDOW_WIDTH 5000
|
|
||||||
|
|
||||||
#define FILE_ROW_SMALL_HEIGHT 18.0
|
#define FILE_ROW_SMALL_HEIGHT 18.0
|
||||||
|
|
||||||
#define TAB_INFO_IDENT @"Info"
|
#define TAB_INFO_IDENT @"Info"
|
||||||
|
@ -734,8 +731,8 @@
|
||||||
else
|
else
|
||||||
[window setFrame: frame display: YES];
|
[window setFrame: frame display: YES];
|
||||||
|
|
||||||
[window setMinSize: NSMakeSize(MIN_WINDOW_WIDTH, frame.size.height)];
|
[window setMinSize: NSMakeSize([window minSize].width, frame.size.height)];
|
||||||
[window setMaxSize: NSMakeSize(MAX_WINDOW_WIDTH, frame.size.height)];
|
[window setMaxSize: NSMakeSize([window maxSize].width, frame.size.height)];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setNextTab
|
- (void) setNextTab
|
||||||
|
|
|
@ -90,8 +90,8 @@
|
||||||
- (void) sleep;
|
- (void) sleep;
|
||||||
- (void) wakeUp;
|
- (void) wakeUp;
|
||||||
|
|
||||||
- (void) announce;
|
- (void) manualAnnounce;
|
||||||
- (BOOL) canAnnounce;
|
- (BOOL) canManualAnnounce;
|
||||||
|
|
||||||
- (void) resetCache;
|
- (void) resetCache;
|
||||||
|
|
||||||
|
|
|
@ -555,12 +555,12 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
tr_torrentStart(fHandle);
|
tr_torrentStart(fHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) announce
|
- (void) manualAnnounce
|
||||||
{
|
{
|
||||||
tr_manualUpdate(fHandle);
|
tr_manualUpdate(fHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) canAnnounce
|
- (BOOL) canManualAnnounce
|
||||||
{
|
{
|
||||||
return tr_torrentCanManualUpdate(fHandle);
|
return tr_torrentCanManualUpdate(fHandle);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue