adium 3503:9d55ae9788e6: Fixed contact status background colors ...
commits at adium.im
commits at adium.im
Wed Nov 10 04:57:30 UTC 2010
details: http://hg.adium.im/adium/rev/9d55ae9788e6
revision: 3503:9d55ae9788e6
author: Evan Schoenberg
date: Tue Nov 09 22:54:34 2010 -0600
Fixed contact status background colors updating in the contact list, including both static and flashing statuses. Fixes #14534. Fixes #14493.
(transplanted from 3429fa3628c5eb63ad6da010f9a7abccb2c35d77)
Subject: adium 3504:e15ffd47335f: Noted that this is private API for posting notifications
details: http://hg.adium.im/adium/rev/e15ffd47335f
revision: 3504:e15ffd47335f
author: Evan Schoenberg
date: Tue Nov 09 22:55:17 2010 -0600
Noted that this is private API for posting notifications
(transplanted from 62545038e5ea18136380727dc1b7d8a2f0e160e4)
diffs (40 lines):
diff -r 69a112797966 -r e15ffd47335f Frameworks/Adium Framework/Source/AIContactControllerProtocol.h
--- a/Frameworks/Adium Framework/Source/AIContactControllerProtocol.h Sun Sep 19 16:04:07 2010 -0500
+++ b/Frameworks/Adium Framework/Source/AIContactControllerProtocol.h Tue Nov 09 22:55:17 2010 -0600
@@ -11,11 +11,13 @@
@class AIListObject, AIListContact, AIChat;
@protocol AIContainingObject;
-/* Posted for a single object whose attributes changed */
+/* Posted for a single object whose attributes changed.
+ * Must be used for observing only! Only the contact controller should post this notification. */
#define ListObject_AttributesChanged @"ListObject_AttributesChanged"
/* Called when one or more ListObject_AttributesChanged notifications are done and all delays have cleared.
- * We're ready to update the display at this point. */
+ * We're ready to update the display at this point.
+ * Must be used for observing only! Only the contact controller should post this notification. */
#define ListObject_AttributeChangesComplete @"ListObject_AttributeChangesComplete"
#define ListObject_StatusChanged @"ListObject_StatusChanged"
diff -r 69a112797966 -r e15ffd47335f Source/AIContactStatusColoringPlugin.m
--- a/Source/AIContactStatusColoringPlugin.m Sun Sep 19 16:04:07 2010 -0500
+++ b/Source/AIContactStatusColoringPlugin.m Tue Nov 09 22:55:17 2010 -0600
@@ -248,13 +248,13 @@
{
AIListContact *object;
+ NSSet *modifiedKeys = [NSSet setWithObjects:@"Text Color", @"Label Color", @"Inverted Text Color", nil];
+
for (object in flashingListObjects) {
[self _applyColorToContact:object];
- //Force a redraw
- [[NSNotificationCenter defaultCenter] postNotificationName:ListObject_AttributesChanged
- object:object
- userInfo:[NSDictionary dictionaryWithObject:[NSArray arrayWithObjects:@"textColor", @"labelColor", @"invertedTextColor", nil] forKey:@"Keys"]];
+ [[AIContactObserverManager sharedManager] listObjectAttributesChanged:object
+ modifiedKeys:modifiedKeys];
}
}
More information about the commits
mailing list