summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-01-11 02:49:43 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-01-11 02:49:43 +0100
commit5d4b0a9e2bfc0b8be9df9043dd2527600b619487 (patch)
tree76217ef875b6b125632c278190cd9d637d27291f
parent9a81b923e6748086f468ff255a4fe1d9ba892ec1 (diff)
downloadpoezio-5d4b0a9e2bfc0b8be9df9043dd2527600b619487.tar.gz
poezio-5d4b0a9e2bfc0b8be9df9043dd2527600b619487.tar.bz2
poezio-5d4b0a9e2bfc0b8be9df9043dd2527600b619487.tar.xz
poezio-5d4b0a9e2bfc0b8be9df9043dd2527600b619487.zip
Move the Contact Window in the left part of the roster tab
-rw-r--r--src/tabs.py6
-rw-r--r--src/windows.py3
2 files changed, 4 insertions, 5 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 74dc468d..04227573 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -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):
diff --git a/src/windows.py b/src/windows.py
index 5ac3c5e3..0268bef0 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -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):