adium-1.4 2789:15a52a331071: Remove underscore character hints f...
commits at adium.im
commits at adium.im
Sun Nov 22 22:54:39 UTC 2009
details: http://hg.adium.im/adium-1.4/rev/15a52a331071
revision: 2789:15a52a331071
author: Evan Schoenberg
date: Sun Nov 22 16:57:25 2009 -0600
Remove underscore character hints from contact menu action items
(transplanted from 3294410d095fef92a8bc6d7e99a240a23fe11561)
diffs (13 lines):
diff -r a3334b626a13 -r 15a52a331071 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