Changeset 2560


Ignore:
Timestamp:
Jul 31, 2007, 12:10:55 AM (15 years ago)
Author:
livings124
Message:

don't hardcode min and max sizes for the inspector

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r2559 r2560  
    7070#define DOCK_SEEDING_TAG        101
    7171#define DOCK_DOWNLOADING_TAG    102
    72 
    73 #define ANNOUNCE_WAIT_INTERVAL_SECONDS  -60.0
    7472
    7573#define WEBSITE_URL @"http://transmission.m0k.org/"
     
    13251323    while ((torrent = [enumerator nextObject]))
    13261324    {
    1327         if ([torrent canAnnounce])
    1328             [torrent announce];
     1325        if ([torrent canManualAnnounce])
     1326            [torrent manualAnnounce];
    13291327    }
    13301328}
     
    28842882    }
    28852883   
    2886     //enable announce item
     2884    //enable manual announce item
    28872885    if (action == @selector(announceSelectedTorrents:))
    28882886    {
     
    28962894        {
    28972895            //time interval returned will be negative
    2898             if ([torrent canAnnounce])
     2896            if ([torrent canManualAnnounce])
    28992897                return YES;
    29002898        }
  • trunk/macosx/InfoWindowController.m

    r2449 r2560  
    2828#import "StringAdditions.h"
    2929
    30 #define MIN_WINDOW_WIDTH 300
    31 #define MAX_WINDOW_WIDTH 5000
    32 
    3330#define FILE_ROW_SMALL_HEIGHT 18.0
    3431
     
    735732        [window setFrame: frame display: YES];
    736733   
    737     [window setMinSize: NSMakeSize(MIN_WINDOW_WIDTH, frame.size.height)];
    738     [window setMaxSize: NSMakeSize(MAX_WINDOW_WIDTH, frame.size.height)];
     734    [window setMinSize: NSMakeSize([window minSize].width, frame.size.height)];
     735    [window setMaxSize: NSMakeSize([window maxSize].width, frame.size.height)];
    739736}
    740737
  • trunk/macosx/Torrent.h

    r2559 r2560  
    9191- (void) wakeUp;
    9292
    93 - (void) announce;
    94 - (BOOL) canAnnounce;
     93- (void) manualAnnounce;
     94- (BOOL) canManualAnnounce;
    9595
    9696- (void) resetCache;
  • trunk/macosx/Torrent.m

    r2559 r2560  
    556556}
    557557
    558 - (void) announce
     558- (void) manualAnnounce
    559559{
    560560    tr_manualUpdate(fHandle);
    561561}
    562562
    563 - (BOOL) canAnnounce
     563- (BOOL) canManualAnnounce
    564564{
    565565    return tr_torrentCanManualUpdate(fHandle);
Note: See TracChangeset for help on using the changeset viewer.