adium 4268:342f1dec6aa6: Remove the user list from the vertical ...
commits at adium.im
commits at adium.im
Sat Oct 29 21:11:50 UTC 2011
details: http://hg.adium.im/adium/rev/342f1dec6aa6
revision: 4268:342f1dec6aa6
branch: (none)
author: Stephen Holt <sholt at adium.im>
date: Sat Oct 29 14:11:42 2011 -0700
Remove the user list from the vertical split view when we have a single user chat. Restore it if, by some magical faerie dust, the chat becomes a MUC. This removes the grey line on the side of single user chats.
Note that this line *must* remain on MUCs so the user list may be dragged open with the mouse. Refs #15577.
diffs (27 lines):
diff -r bb9f69f82a5b -r 342f1dec6aa6 Plugins/Dual Window Interface/AIMessageViewController.m
--- a/Plugins/Dual Window Interface/AIMessageViewController.m Sat Oct 29 13:39:21 2011 -0700
+++ b/Plugins/Dual Window Interface/AIMessageViewController.m Sat Oct 29 14:11:42 2011 -0700
@@ -1133,6 +1133,9 @@
*/
- (void)_showUserListView
{
+ if (chat.isGroupChat && view_userList.superview == nil) {
+ [splitView_verticalSplit addSubview:view_userList];
+ }
[self updateUserCount];
[userListController reloadData];
@@ -1148,6 +1151,13 @@
*/
- (void)_hideUserListView
{
+ if (!chat.isGroupChat) {
+ CGRect frame = view_userList.frame;
+ frame.size.width = 0;
+ view_userList.frame = frame;
+ [view_userList retain];
+ [view_userList removeFromSuperview];
+ }
[view_userList setHidden:YES];
[splitView_verticalSplit adjustSubviews];
}
More information about the commits
mailing list