Changeset 3345


Ignore:
Timestamp:
Oct 10, 2007, 2:35:16 AM (14 years ago)
Author:
livings124
Message:

improve Activity icon and display the tab name in the inspector's title

Location:
trunk
Files:
3 edited

Legend:

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

    r3344 r3345  
    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/InfoWindowController.m

    r3325 r3345  
    513513   
    514514    NSView * view;
    515     NSString * identifier;
     515    NSString * identifier, * title;;
    516516    switch (fCurrentTabTag)
    517517    {
     
    519519            view = fInfoView;
    520520            identifier = TAB_INFO_IDENT;
     521            title = NSLocalizedString(@"General Info", "Inspector -> title");
    521522            canResizeVertical = NO;
    522523            break;
     
    524525            view = fActivityView;
    525526            identifier = TAB_ACTIVITY_IDENT;
     527            title = NSLocalizedString(@"Activity", "Inspector -> title");
    526528            canResizeVertical = NO;
    527529           
     
    531533            view = fPeersView;
    532534            identifier = TAB_PEERS_IDENT;
     535            title = NSLocalizedString(@"Peers", "Inspector -> title");
    533536            canResizeVertical = YES;
    534537            break;
     
    536539            view = fFilesView;
    537540            identifier = TAB_FILES_IDENT;
     541            title = NSLocalizedString(@"Files", "Inspector -> title");
    538542            canResizeVertical = YES;
    539543            break;
     
    541545            view = fOptionsView;
    542546            identifier = TAB_OPTIONS_IDENT;
     547            title = NSLocalizedString(@"Options", "Inspector -> title");
    543548            canResizeVertical = NO;
    544549            break;
     
    571576            [[NSUserDefaults standardUserDefaults] setFloat: [oldView frame].size.height forKey: @"InspectorContentHeight"];
    572577    }
     578   
     579    [window setTitle: [NSString stringWithFormat: @"%@ - %@", title, NSLocalizedString(@"Torrent Inspector", "Inspector -> title")]];
    573580   
    574581    //selected tab item
Note: See TracChangeset for help on using the changeset viewer.