summaryrefslogtreecommitdiff
path: root/src/tab.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-10-04 00:27:40 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-10-04 00:27:40 +0000
commitd6bb19572e3a5557f1e125b68ec1676cced1448a (patch)
tree7e867c25344cf5e2398d02cdde11e0b86bfda600 /src/tab.py
parent3ea295f8c78d74c7ce94db3271f0ce3464e4e0cb (diff)
downloadpoezio-d6bb19572e3a5557f1e125b68ec1676cced1448a.tar.gz
poezio-d6bb19572e3a5557f1e125b68ec1676cced1448a.tar.bz2
poezio-d6bb19572e3a5557f1e125b68ec1676cced1448a.tar.xz
poezio-d6bb19572e3a5557f1e125b68ec1676cced1448a.zip
contact information buffer in the roster tab (yet empty)
Diffstat (limited to 'src/tab.py')
-rw-r--r--src/tab.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tab.py b/src/tab.py
index dadd2f7f..d5734941 100644
--- a/src/tab.py
+++ b/src/tab.py
@@ -369,7 +369,8 @@ class RosterInfoTab(Tab):
self.v_separator = window.VerticalSeparator(self.height-2, 1, 0, roster_width, stdscr, self.visible)
self.tab_win = window.GlobalInfoBar(1, self.width, self.height-2, 0, stdscr, self.visible)
self.info_win = window.TextWin(self.height-2, info_width, 0, roster_width+1, stdscr, self.visible)
- self.roster_win = window.RosterWin(self.height-2, roster_width, 0, 0, stdscr, self.visible)
+ self.roster_win = window.RosterWin(self.height-2-3, roster_width, 0, 0, stdscr, self.visible)
+ self.contact_info_win = window.ContactInfoWin(3, roster_width, self.height-2-3, 0, stdscr, self.visible)
self.input = window.Input(1, self.width, self.height-1, 0, stdscr, self.visible)
self.set_color_state(theme.COLOR_TAB_NORMAL)
@@ -380,11 +381,13 @@ class RosterInfoTab(Tab):
self.v_separator.resize(self.height-2, 1, 0, roster_width, stdscr, self.visible)
self.tab_win.resize(1, self.width, self.height-2, 0, stdscr, self.visible)
self.info_win.resize(self.height-2, info_width, 0, roster_width+1, stdscr, self.visible)
- self.roster_win.resize(self.height-2, roster_width, 0, 0, stdscr, self.visible)
+ self.roster_win.resize(self.height-2-3, roster_width, 0, 0, stdscr, self.visible)
+ self.contact_info_win.resize(3, roster_width, self.height-2-3, 0, stdscr, self.visible)
self.input.resize(1, self.width, self.height-1, 0, stdscr, self.visible)
def refresh(self, tabs, informations, roster):
self.roster_win.refresh(roster)
+ self.contact_info_win.refresh(self.roster_win.get_selected_row())
self.v_separator.refresh()
self.info_win.refresh(informations)
self.tab_win.refresh(tabs, tabs[0])