Move the Contact Window in the left part of the roster tab

This commit is contained in:
Florent Le Coz 2011-01-11 02:49:43 +01:00
parent 9a81b923e6
commit 5d4b0a9e2b
2 changed files with 4 additions and 5 deletions

View file

@ -765,9 +765,9 @@ class RosterInfoTab(Tab):
info_width = self.width-roster_width-1
self.v_separator.resize(self.height-2, 1, 0, roster_width, self.core.stdscr)
self.tab_win.resize(1, self.width, self.height-2, 0, self.core.stdscr)
self.info_win.resize(self.height-2, info_width, 0, roster_width+1, self.core.stdscr, self.core.information_buffer)
self.roster_win.resize(self.height-2-3, roster_width, 0, 0, self.core.stdscr)
self.contact_info_win.resize(3, roster_width, self.height-2-3, 0, self.core.stdscr)
self.info_win.resize(self.height-2-4, info_width, 0, roster_width+1, self.core.stdscr, self.core.information_buffer)
self.roster_win.resize(self.height-2, roster_width, 0, 0, self.core.stdscr)
self.contact_info_win.resize(4, info_width, self.height-2-4, roster_width+1, self.core.stdscr)
self.input.resize(1, self.width, self.height-1, 0, self.core.stdscr)
def completion(self):

View file

@ -1314,8 +1314,7 @@ class ContactInfoWin(Win):
presence = resource.get_presence()
else:
presence = 'unavailable'
self.addstr(0, 0, jid, curses.color_pair(theme.COLOR_INFORMATION_BAR))
self.addstr(' (%s)'%(presence,), curses.color_pair(theme.COLOR_INFORMATION_BAR))
self.addstr(0, 0, '%s (%s)'%(jid, presence,), curses.color_pair(theme.COLOR_INFORMATION_BAR))
self.finish_line(theme.COLOR_INFORMATION_BAR)
def draw_group_info(self, group):