diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-04-18 02:27:46 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-04-18 02:27:46 +0200 |
commit | 78d8d3e74b6367257d3adad5fba45affb17b0a65 (patch) | |
tree | 380866e121c5d7d51a7a113b9f80aef42897dc59 /src/tabs.py | |
parent | da76355af0759a9265bec470a72af129d797fa04 (diff) | |
download | poezio-78d8d3e74b6367257d3adad5fba45affb17b0a65.tar.gz poezio-78d8d3e74b6367257d3adad5fba45affb17b0a65.tar.bz2 poezio-78d8d3e74b6367257d3adad5fba45affb17b0a65.tar.xz poezio-78d8d3e74b6367257d3adad5fba45affb17b0a65.zip |
Great roster refresh optimization
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py index 5f11e1f0..2061c86e 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -1308,11 +1308,17 @@ class RosterInfoTab(Tab): def move_cursor_down(self): self.roster_win.move_cursor_down() - return True + self.roster_win.refresh(roster) + self.contact_info_win.refresh(self.roster_win.get_selected_row()) + self.input.refresh() + self.core.doupdate() def move_cursor_up(self): self.roster_win.move_cursor_up() - return True + self.roster_win.refresh(roster) + self.contact_info_win.refresh(self.roster_win.get_selected_row()) + self.input.refresh() + self.core.doupdate() def move_cursor_to_prev_group(self): self.roster_win.move_cursor_up() @@ -1320,6 +1326,7 @@ class RosterInfoTab(Tab): if not self.roster_win.move_cursor_up(): break self.roster_win.refresh(roster) + self.contact_info_win.refresh(self.roster_win.get_selected_row()) self.input.refresh() self.core.doupdate() @@ -1329,6 +1336,7 @@ class RosterInfoTab(Tab): if not self.roster_win.move_cursor_down(): break self.roster_win.refresh(roster) + self.contact_info_win.refresh(self.roster_win.get_selected_row()) self.input.refresh() self.core.doupdate() |