fix change theme in gc

This commit is contained in:
Denis Fomin 2013-01-03 17:26:12 +04:00
parent 371fe86172
commit a12530cd25
1 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,7 @@ import os
import time
import locale
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GdkPixbuf
from gi.repository import Pango
from gi.repository import GObject
@ -710,7 +711,7 @@ class GroupchatControl(ChatControlBase):
model[iter_][C_NICK] = model[iter_][C_NICK]
def change_roster_style(self):
self.model.foreach(self._change_style)
self.model.foreach(self._change_style, None)
def repaint_themed_widgets(self):
ChatControlBase.repaint_themed_widgets(self)
@ -1971,7 +1972,7 @@ class GroupchatControl(ChatControlBase):
gajim.config.set('gc-hpaned-position', self.hpaned.get_position())
# remove all register handlers on wigets, created by self.xml
# to prevent circular references among objects
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]