adium 2938:3294410d095f: Remove underscore character hints from ...

commits at adium.im commits at adium.im
Sun Nov 22 22:53:57 UTC 2009


details:	http://hg.adium.im/adium/rev/3294410d095f
revision:	2938:3294410d095f
author:		Evan Schoenberg
date:		Sun Nov 22 16:57:25 2009 -0600

Remove underscore character hints from contact menu action items

diffs (13 lines):

diff -r 6018d546f035 -r 3294410d095f Plugins/Purple Service/CBPurpleAccount.m
--- a/Plugins/Purple Service/CBPurpleAccount.m	Sun Nov 22 15:40:12 2009 -0600
+++ b/Plugins/Purple Service/CBPurpleAccount.m	Sun Nov 22 16:57:25 2009 -0600
@@ -2773,7 +2773,8 @@
 //Subclasses may override to provide a localized label and/or prevent a specified label from being shown
 - (NSString *)titleForContactMenuLabel:(const char *)label forContact:(AIListContact *)inContact
 {
-	return [NSString stringWithUTF8String:label];
+	/* Remove the underscore 'hints' which libpurple includes for gtk usage */
+	return [[NSString stringWithUTF8String:label] stringByReplacingOccurrencesOfString:@"_" withString:@""];
 }
 
 /*!




More information about the commits mailing list