diff options
author | mathieui <mathieui@mathieui.net> | 2011-02-02 00:51:34 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-02-02 00:51:34 +0100 |
commit | 01f3409505a6d0a0459b79f2d9c3895cd7078a70 (patch) | |
tree | 741f81f2a46accf44df6341e38b17b5a1465aefc /src/windows.py | |
parent | 89f337a4573ebbca513103340c9400b97950745c (diff) | |
download | poezio-01f3409505a6d0a0459b79f2d9c3895cd7078a70.tar.gz poezio-01f3409505a6d0a0459b79f2d9c3895cd7078a70.tar.bz2 poezio-01f3409505a6d0a0459b79f2d9c3895cd7078a70.tar.xz poezio-01f3409505a6d0a0459b79f2d9c3895cd7078a70.zip |
fixed #2115
Diffstat (limited to 'src/windows.py')
-rw-r--r-- | src/windows.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/windows.py b/src/windows.py index 546b4be3..2720053d 100644 --- a/src/windows.py +++ b/src/windows.py @@ -1259,7 +1259,8 @@ class RosterWin(Win): def draw_roster_information(self, roster): """ """ - self.addstr('Roster: %s contacts' % roster.get_contact_len(), curses.color_pair(theme.COLOR_INFORMATION_BAR)) + self.addstr('Roster: %s/%s contacts' % (roster.get_nb_connected_contacts(), roster.get_contact_len())\ + , curses.color_pair(theme.COLOR_INFORMATION_BAR)) self.finish_line(theme.COLOR_INFORMATION_BAR) def draw_group(self, y, group, colored): @@ -1272,7 +1273,8 @@ class RosterWin(Win): self.addstr(y, 0, '[+] ') else: self.addstr(y, 0, '[-] ') - self.addstr(y, 4, group.name) + contacts = " (%s/%s)" % (group.get_nb_connected_contacts(), len(group)) + self.addstr(y, 4, group.name + contacts) if colored: self._win.attroff(curses.color_pair(theme.COLOR_SELECTED_ROW)) |