adium-1.4 2802:f90fc352471c: For our `WebView`s, use a preferenc...
commits at adium.im
commits at adium.im
Mon Nov 23 20:41:51 UTC 2009
details: http://hg.adium.im/adium-1.4/rev/f90fc352471c
revision: 2802:f90fc352471c
author: Evan Schoenberg
date: Mon Nov 23 14:41:32 2009 -0600
For our `WebView`s, use a preferences identifier of activeStyle-preferenceGroup. This uniques group chats from one-on-one chats when their preferences are being stored separately. The WebView preference identifier is used only transiently in our usage to allow all WebViews to update when one changes (via the preferences); this doesn't change our actual storage and retrieval of the prefs. Fixes #12810 by implementing Zac's suggestion there.
(transplanted from 9232899b7ef583f1fdca1f70c0a816b4cb7513fa)
diffs (13 lines):
diff -r c38058f6fea8 -r f90fc352471c Plugins/WebKit Message View/AIWebKitMessageViewController.m
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m Mon Nov 23 01:29:41 2009 -0500
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m Mon Nov 23 14:41:32 2009 -0600
@@ -352,7 +352,8 @@
activeStyle = [[[messageStyle bundle] bundleIdentifier] retain];
preferenceGroup = [[plugin preferenceGroupForChat:chat] retain];
- [webView setPreferencesIdentifier:activeStyle];
+ [webView setPreferencesIdentifier:[NSString stringWithFormat:@"%@-%@",
+ activeStyle, preferenceGroup]];
//Get the prefered variant (or the default if a prefered is not available)
activeVariant = [[adium.preferenceController preferenceForKey:[plugin styleSpecificKey:@"Variant" forStyle:activeStyle]
More information about the commits
mailing list