Changeset 3489


Ignore:
Timestamp:
Oct 21, 2007, 1:53:29 PM (14 years ago)
Author:
livings124
Message:

set some menu titles without regard to what it is already set to (this should in theory be faster and looks cleaner)

Location:
trunk
Files:
3 edited

Legend:

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

    r3487 r3489  
    365365                4DFBC2DE09C0970D00D5C571 /* Torrent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Torrent.m; path = macosx/Torrent.m; sourceTree = "<group>"; };
    366366                8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; name = Info.plist; path = macosx/Info.plist; sourceTree = "<group>"; };
    367                 8D1107320486CEB800E47090 /* Transmission.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = Transmission.app; sourceTree = BUILT_PRODUCTS_DIR; };
     367                8D1107320486CEB800E47090 /* Transmission.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Transmission.app; sourceTree = BUILT_PRODUCTS_DIR; };
    368368                A200B8390A2263BA007BBB1E /* InfoWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = InfoWindowController.h; path = macosx/InfoWindowController.h; sourceTree = "<group>"; };
    369369                A200B83A0A2263BA007BBB1E /* InfoWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = InfoWindowController.m; path = macosx/InfoWindowController.m; sourceTree = "<group>"; };
  • trunk/macosx/Controller.m

    r3485 r3489  
    28292829        NSString * title = [[fInfoController window] isVisible] ? NSLocalizedString(@"Hide Inspector", "View menu -> Inspector")
    28302830                            : NSLocalizedString(@"Show Inspector", "View menu -> Inspector");
    2831         if (![[menuItem title] isEqualToString: title])
    2832             [menuItem setTitle: title];
     2831        [menuItem setTitle: title];
    28332832
    28342833        return YES;
     
    28442843        NSString * title = [fStatusBar isHidden] ? NSLocalizedString(@"Show Status Bar", "View menu -> Status Bar")
    28452844                            : NSLocalizedString(@"Hide Status Bar", "View menu -> Status Bar");
    2846         if (![[menuItem title] isEqualToString: title])
    2847             [menuItem setTitle: title];
     2845        [menuItem setTitle: title];
    28482846
    28492847        return [fWindow isVisible];
     
    28552853        NSString * title = [fFilterBar isHidden] ? NSLocalizedString(@"Show Filter Bar", "View menu -> Filter Bar")
    28562854                            : NSLocalizedString(@"Hide Filter Bar", "View menu -> Filter Bar");
    2857         if (![[menuItem title] isEqualToString: title])
    2858             [menuItem setTitle: title];
     2855        [menuItem setTitle: title];
    28592856
    28602857        return [fWindow isVisible];
     
    30243021        NSString * filterType = [fDefaults stringForKey: @"FilterSearchType"];
    30253022       
    3026         int tag = [menuItem tag];
    30273023        BOOL state;
    3028         if (tag == FILTER_TYPE_TAG_TRACKER)
     3024        if ([menuItem tag] == FILTER_TYPE_TAG_TRACKER)
    30293025            state = [filterType isEqualToString: FILTER_TYPE_TRACKER];
    30303026        else
  • trunk/macosx/PiecesView.m

    r3464 r3489  
    149149    if (showAvailablity)
    150150    {   
    151         pieces = malloc(fNumPieces);
     151        pieces = malloc(fNumPieces * sizeof(int8_t));
    152152        [fTorrent getAvailability: pieces size: fNumPieces];
    153153    }
Note: See TracChangeset for help on using the changeset viewer.