Commit 5d4b0a9e authored by louiz’'s avatar louiz’

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

parent 9a81b923
...@@ -765,9 +765,9 @@ class RosterInfoTab(Tab): ...@@ -765,9 +765,9 @@ class RosterInfoTab(Tab):
info_width = self.width-roster_width-1 info_width = self.width-roster_width-1
self.v_separator.resize(self.height-2, 1, 0, roster_width, self.core.stdscr) 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.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.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-3, roster_width, 0, 0, self.core.stdscr) self.roster_win.resize(self.height-2, roster_width, 0, 0, self.core.stdscr)
self.contact_info_win.resize(3, roster_width, self.height-2-3, 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) self.input.resize(1, self.width, self.height-1, 0, self.core.stdscr)
def completion(self): def completion(self):
......
...@@ -1314,8 +1314,7 @@ class ContactInfoWin(Win): ...@@ -1314,8 +1314,7 @@ class ContactInfoWin(Win):
presence = resource.get_presence() presence = resource.get_presence()
else: else:
presence = 'unavailable' presence = 'unavailable'
self.addstr(0, 0, jid, curses.color_pair(theme.COLOR_INFORMATION_BAR)) self.addstr(0, 0, '%s (%s)'%(jid, presence,), curses.color_pair(theme.COLOR_INFORMATION_BAR))
self.addstr(' (%s)'%(presence,), curses.color_pair(theme.COLOR_INFORMATION_BAR))
self.finish_line(theme.COLOR_INFORMATION_BAR) self.finish_line(theme.COLOR_INFORMATION_BAR)
def draw_group_info(self, group): def draw_group_info(self, group):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment