1.1 --- a/Plugins/Purple Service/ESIRCService.m Sat Oct 17 17:35:57 2009 -0400
1.2 +++ b/Plugins/Purple Service/ESIRCService.m Sat Oct 31 15:52:20 2009 -0400
1.3 @@ -102,13 +102,11 @@
1.4 */
1.5 - (NSImage *)defaultServiceIconOfType:(AIServiceIconType)iconType
1.6 {
1.7 - NSImage *baseImage = [NSImage imageNamed:@"irc" forClass:[self class] loadLazily:YES];
1.8 -
1.9 - if (iconType == AIServiceIconSmall || iconType == AIServiceIconList) {
1.10 - baseImage = [baseImage imageByScalingToSize:NSMakeSize(16, 16)];
1.11 - }
1.12 -
1.13 - return baseImage;
1.14 + if ((iconType == AIServiceIconSmall) || (iconType == AIServiceIconList)) {
1.15 + return [NSImage imageNamed:@"irc-small" forClass:[self class] loadLazily:YES];
1.16 + } else {
1.17 + return [NSImage imageNamed:@"irc" forClass:[self class] loadLazily:YES];
1.18 + }
1.19 }
1.20
1.21 /*!
1.22 @@ -122,9 +120,9 @@
1.23 - (NSString *)pathForDefaultServiceIconOfType:(AIServiceIconType)iconType
1.24 {
1.25 if ((iconType == AIServiceIconSmall) || (iconType == AIServiceIconList)) {
1.26 - return nil; //xxx add small IRC icon
1.27 + return [[NSBundle bundleForClass:[self class]] pathForImageResource:@"irc-small"];
1.28 } else {
1.29 - return [[NSBundle bundleForClass:[self class]] pathForImageResource:@"irc"];
1.30 + return [[NSBundle bundleForClass:[self class]] pathForImageResource:@"irc"];
1.31 }
1.32 }
1.33