adium 4243:2e10c2e3fee2: Fix #15446: Fix issue where the user co...

commits at adium.im commits at adium.im
Sun Oct 23 20:57:01 UTC 2011


details:	http://hg.adium.im/adium/rev/2e10c2e3fee2
revision:	4243:2e10c2e3fee2
branch:		(none)
author:		Stephen Holt <sholt at adium.im>
date:		Sun Oct 23 13:56:50 2011 -0700

Fix #15446: Fix issue where the user count was not updated when the user list is dragged open. Addionally, fix issue where the state of the user list was not preserved when the user list is dragged open or closed.

diffs (43 lines):

diff -r 4ba927c80d83 -r 2e10c2e3fee2 ChangeLogs/Changes Between Betas.txt
--- a/ChangeLogs/Changes Between Betas.txt	Sun Oct 23 13:15:46 2011 -0700
+++ b/ChangeLogs/Changes Between Betas.txt	Sun Oct 23 13:56:50 2011 -0700
@@ -1,3 +1,6 @@
 Adium 1.5b2
  * Made the separator between the text entry and message views thinner.
- * Fixed a shadow drawing error under 64 bit in PSMTabBarController
\ No newline at end of file
+ * Fixed a shadow drawing error under 64 bit in PSMTabBarController
+ * Fix issue where the user count was not updated when the user list is dragged open. (#15446)
+ * Fix issue where the state of the user list was not preserved when the user list is dragged open or closed.
+ 
\ No newline at end of file
diff -r 4ba927c80d83 -r 2e10c2e3fee2 Plugins/Dual Window Interface/AIMessageViewController.m
--- a/Plugins/Dual Window Interface/AIMessageViewController.m	Sun Oct 23 13:15:46 2011 -0700
+++ b/Plugins/Dual Window Interface/AIMessageViewController.m	Sun Oct 23 13:56:50 2011 -0700
@@ -1293,6 +1293,26 @@
 }
 
 /* 
+ * @brief Set the appropriate preference when the user list is dragged open or closed and update user count.
+ */
+- (void)splitViewDidResizeSubviews:(NSNotification *)aNotification
+{
+	NSRect userListFrame = view_userList.frame;
+	BOOL isVisible = NO;
+	if (NSWidth(userListFrame) > 0) {
+		//[view_userList setHidden:NO];
+		[self updateUserCount];
+		[userListController reloadData];
+		isVisible = YES;
+	}
+	[adium.preferenceController setPreference:[NSNumber numberWithBool:isVisible]
+									   forKey:[KEY_USER_LIST_VISIBLE_PREFIX stringByAppendingFormat:@"%@.%@",
+											   chat.account.internalObjectID,
+											   chat.name]
+										group:PREF_GROUP_DUAL_WINDOW_INTERFACE];
+}
+
+/* 
  * @brief Keep the userlist and text entry view the same size when the window is resized.
  */
 - (void)splitView:(NSSplitView *)splitView resizeSubviewsWithOldSize:(NSSize)oldSize




More information about the commits mailing list