Changeset 5338


Ignore:
Timestamp:
Mar 23, 2008, 3:57:14 AM (14 years ago)
Author:
livings124
Message:

miscellaneous cleanup

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Transmission.xcodeproj/project.pbxproj

    r5335 r5338  
    21262126                                GCC_WARN_UNUSED_PARAMETER = NO;
    21272127                                GCC_WARN_UNUSED_VALUE = NO;
    2128                                 GCC_WARN_UNUSED_VARIABLE = YES;
     2128                                GCC_WARN_UNUSED_VARIABLE = NO;
    21292129                                IBC_FLATTEN_NIBS = YES;
    21302130                                MACOSX_DEPLOYMENT_TARGET = 10.4;
  • trunk/macosx/AboutWindowController.m

    r4423 r5338  
    6464}
    6565
    66 - (void) windowWillClose: (id)sender
     66- (void) windowWillClose: (id) sender
    6767{
    6868        [fAboutBoxInstance release];
  • trunk/macosx/GroupsWindowController.m

    r5335 r5338  
    6868}
    6969
    70 - (void) windowWillClose: (id)sender
     70- (void) windowWillClose: (id) sender
    7171{
     72    #warning remove when streamlined
     73    [[NSColorPanel sharedColorPanel] close];
     74   
    7275        [fGroupsWindowInstance release];
    7376    fGroupsWindowInstance = nil;
  • trunk/macosx/MenuLabel.h

    r4423 r5338  
    2323 *****************************************************************************/
    2424
     25//TIGER-ONLY
     26
    2527#import <Cocoa/Cocoa.h>
    2628
  • trunk/macosx/Torrent.h

    r5325 r5338  
    3737@interface Torrent : NSObject
    3838{
    39     tr_handle * fLib;
    4039    tr_torrent * fHandle;
    4140    const tr_info * fInfo;
  • trunk/macosx/Torrent.m

    r5335 r5338  
    15431543    fID = static_lastid;
    15441544   
    1545     fLib = lib;
    15461545    fDefaults = [NSUserDefaults standardUserDefaults];
    15471546
     
    15621561   
    15631562    //set libtransmission settings for initialization
    1564     tr_ctor * ctor = tr_ctorNew(fLib);
     1563    tr_ctor * ctor = tr_ctorNew(lib);
    15651564    tr_ctorSetPaused(ctor, TR_FORCE, YES);
    15661565    tr_ctorSetMaxConnectedPeers(ctor, TR_FALLBACK, [fDefaults integerForKey: @"PeersTorrent"]);
     
    15711570    {
    15721571        tr_ctorSetMetainfoFromHash(ctor, [hashString UTF8String]);
    1573         if (tr_torrentParse(fLib, ctor, &info) == TR_OK)
     1572        if (tr_torrentParse(lib, ctor, &info) == TR_OK)
    15741573        {
    15751574            NSString * currentDownloadFolder = [self shouldUseIncompleteFolderForName: [NSString stringWithUTF8String: info.name]]
     
    15771576            tr_ctorSetDestination(ctor, TR_FORCE, [currentDownloadFolder UTF8String]);
    15781577           
    1579             fHandle = tr_torrentNew(fLib, ctor, &error);
     1578            fHandle = tr_torrentNew(lib, ctor, &error);
    15801579        }
    15811580        tr_metainfoFree(&info);
     
    15841583    {
    15851584        tr_ctorSetMetainfoFromFile(ctor, [path UTF8String]);
    1586         if (tr_torrentParse(fLib, ctor, &info) == TR_OK)
     1585        if (tr_torrentParse(lib, ctor, &info) == TR_OK)
    15871586        {
    15881587            NSString * currentDownloadFolder = [self shouldUseIncompleteFolderForName: [NSString stringWithUTF8String: info.name]]
     
    15901589            tr_ctorSetDestination(ctor, TR_FORCE, [currentDownloadFolder UTF8String]);
    15911590           
    1592             fHandle = tr_torrentNew(fLib, ctor, &error);
     1591            fHandle = tr_torrentNew(lib, ctor, &error);
    15931592        }
    15941593        tr_metainfoFree(&info);
     
    15971596    {
    15981597        tr_ctorSetMetainfo(ctor, [data bytes], [data length]);
    1599         if (tr_torrentParse(fLib, ctor, &info) == TR_OK)
     1598        if (tr_torrentParse(lib, ctor, &info) == TR_OK)
    16001599        {
    16011600            NSString * currentDownloadFolder = [self shouldUseIncompleteFolderForName: [NSString stringWithUTF8String: info.name]]
     
    16031602            tr_ctorSetDestination(ctor, TR_FORCE, [currentDownloadFolder UTF8String]);
    16041603           
    1605             fHandle = tr_torrentNew(fLib, ctor, &error);
     1604            fHandle = tr_torrentNew(lib, ctor, &error);
    16061605        }
    16071606        tr_metainfoFree(&info);
     
    16351634    fWaitToStart = waitToStart && [waitToStart boolValue];
    16361635   
    1637     fOrderValue = orderValue ? [orderValue intValue] : tr_torrentCount(fLib) - 1;
     1636    fOrderValue = orderValue ? [orderValue intValue] : tr_torrentCount(lib) - 1;
    16381637    fGroupValue = groupValue ? [groupValue intValue] : -1;
    16391638   
Note: See TracChangeset for help on using the changeset viewer.