changeset 0bb88fc343a5 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=0bb88fc343a5 description: fix window mode
diffstat:
src/message_window.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 922d66465fe1 -r 0bb88fc343a5 src/message_window.py --- a/src/message_window.py Thu Jan 03 19:39:04 2013 +0400 +++ b/src/message_window.py Thu Jan 03 20:09:40 2013 +0400 @@ -252,7 +252,7 @@ self._controls.clear() # Clean up handlers connected to the parent window, this is important since # self.window may be the RosterWindow - for i in self.handlers.keys(): + for i in list(self.handlers.keys()): if self.handlers[i].handler_is_connected(i): self.handlers[i].disconnect(i) del self.handlers[i] @@ -1150,7 +1150,7 @@ return ctrls
def windows(self): - for w in self._windows.values(): + for w in list(self._windows.values()): yield w
def controls(self): @@ -1237,7 +1237,7 @@ else: # Stash current size so it can be restored if the MessageWindow # is not longer embedded - roster_width = w.parent_paned.get_child1().allocation.width + roster_width = w.parent_paned.get_position() gajim.config.set('roster_width', roster_width)
while w.notebook.get_n_pages():