adium 2892:ab4ed45fa4b8: Third commit on a less-than one line ch...

commits at adium.im commits at adium.im
Sat Nov 7 23:26:10 UTC 2009


details:	http://hg.adium.im/adium/rev/ab4ed45fa4b8
revision:	2892:ab4ed45fa4b8
author:		Zachary West <zacw at adium.im>
date:		Sat Nov 07 18:25:49 2009 -0500

Third commit on a less-than one line change...go!
(transplanted from fe275b7384d6e918e3f3ed0568d96422b9cf40b2)

diffs (24 lines):

diff -r e8454cb90a5e -r ab4ed45fa4b8 Plugins/WebKit Message View/AIWebkitMessageViewStyle.m
--- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Nov 07 18:21:33 2009 -0500
+++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Nov 07 18:25:49 2009 -0500
@@ -35,6 +35,7 @@
 #import <Adium/AIServiceIcons.h>
 #import <Adium/AIContentControllerProtocol.h>
 #import <Adium/AIStatusIcons.h>
+#import <AIUtilities/AIApplicationAdditions.h>
 
 //
 #define LEGACY_VERSION_THRESHOLD		3	//Styles older than this version are considered legacy
@@ -656,7 +657,11 @@
 	}
 	
 	//Alphabetize the variants
-	[availableVariants sortUsingSelector:@selector(localizedStandardCompare:)];
+	if ([NSApp isOnSnowLeopardOrBetter]) {
+		[availableVariants sortUsingSelector:@selector(localizedStandardCompare:)];
+	} else {
+		[availableVariants sortUsingSelector:@selector(compare:)];
+	}
 	
 	return availableVariants;
 }



More information about the commits mailing list