Adium

Changeset 13809

Show
Ignore:
Timestamp:
10/25/2005 09:08:29 PM (3 years ago)
Author:
catfish_man
Message:

New format status icon support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/Adium Framework/AIStatusIcons.m

    r12946 r13809  
    183183+ (BOOL)setActiveStatusIconsFromPath:(NSString *)inPath 
    184184{ 
     185        NSBundle * xtraBundle = [NSBundle bundleWithPath:inPath]; 
     186        if(xtraBundle && [[xtraBundle objectForInfoDictionaryKey:@"XtraBundleVersion"] isEqualToNumber:[NSNumber numberWithInt:1]])//This checks for a new-style xtra 
     187                inPath = [xtraBundle resourcePath]; 
     188         
    185189        if (!statusIconBasePath || ![statusIconBasePath isEqualToString:inPath]) { 
    186190                NSDictionary    *statusIconDict = [NSDictionary dictionaryWithContentsOfFile:[inPath stringByAppendingPathComponent:@"Icons.plist"]]; 
     
    295299+ (NSImage *)previewMenuImageForIconPackAtPath:(NSString *)inPath 
    296300{ 
     301        NSBundle * xtraBundle = [NSBundle bundleWithPath:inPath]; 
     302        if(xtraBundle && [[xtraBundle objectForInfoDictionaryKey:@"XtraBundleVersion"] isEqualToNumber:[NSNumber numberWithInt:1]])//This checks for a new-style xtra 
     303                inPath = [xtraBundle resourcePath]; 
     304         
    297305        NSImage                 *image; 
    298306        NSDictionary    *iconDict;