From 17ebb92ece4dc7b45b816bac660fed6ade9db0e7 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 17 Oct 2010 12:43:56 +0000 Subject: yet better refresh --- src/gui.py | 3 ++- src/window.py | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/gui.py b/src/gui.py index 9fc649d9..8ee82e59 100644 --- a/src/gui.py +++ b/src/gui.py @@ -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): """ -- cgit v1.2.3