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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.