diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-10-17 12:43:56 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-10-17 12:43:56 +0000 |
commit | 17ebb92ece4dc7b45b816bac660fed6ade9db0e7 (patch) | |
tree | 24a646067e7ad8df3c31d94dced3959da85d6224 /src | |
parent | 9c9236eb49caf55f86bd5b7a39ab364f028bc1bf (diff) | |
download | poezio-17ebb92ece4dc7b45b816bac660fed6ade9db0e7.tar.gz poezio-17ebb92ece4dc7b45b816bac660fed6ade9db0e7.tar.bz2 poezio-17ebb92ece4dc7b45b816bac660fed6ade9db0e7.tar.xz poezio-17ebb92ece4dc7b45b816bac660fed6ade9db0e7.zip |
yet better refresh
Diffstat (limited to 'src')
-rw-r--r-- | src/gui.py | 3 | ||||
-rw-r--r-- | src/window.py | 6 |
2 files changed, 4 insertions, 5 deletions
@@ -472,7 +472,6 @@ class Gui(object): A subscription changed, or we received a roster item after a roster request, etc """ - # debug('Roster Update: \n%s\n\n' % iq) for item in iq.findall('{jabber:iq:roster}query/{jabber:iq:roster}item'): jid = item.attrib['jid'] contact = self.roster.get_contact_by_jid(jid) @@ -587,6 +586,7 @@ class Gui(object): """ self.current_tab().set_color_state(theme.COLOR_TAB_CURRENT) self.current_tab().refresh(self.tabs, self.information_buffer, self.roster) + self.doupdate() def open_new_room(self, room, nick, focus=True): """ @@ -1337,4 +1337,5 @@ class Gui(object): self.doupdate() def doupdate(self): + self.current_tab().just_before_refresh() curses.doupdate() diff --git a/src/window.py b/src/window.py index 64db72ae..c8a05625 100644 --- a/src/window.py +++ b/src/window.py @@ -876,7 +876,7 @@ class Input(Win): with g_lock: self.clear_text() self.addstr(self.text[self.line_pos:self.line_pos+self.width-1]) - # self.win.chgat(0, self.pos, 1, curses.A_REVERSE) + self.addstr(0, self.pos, '') # WTF, this works but .move() doesn't... self._refresh() def refresh(self): @@ -891,9 +891,7 @@ class Input(Win): """ move the cursor at the current pos """ - from common import debug - debug('ALLO') - self._win.move(0, self.pos) + return class VerticalSeparator(Win): """ |