fix some typo. Fixes #4545

This commit is contained in:
Yann Leboulanger 2008-12-03 20:45:26 +00:00
parent 1865294a25
commit 1d94f0fbff
2 changed files with 3 additions and 3 deletions

View File

@ -405,11 +405,11 @@ class ChatControlBase(MessageControl):
widget.disconnect(id_)
del self.handlers[id_]
break
if found:
def connect_style_event(self, widget, set_fg = False, set_bg = False):
self.disconnect_style_event(widget)
id_ = widget.connect('style-set', self._on_style_set_event, set_fg, set_bg)
id_ = widget.connect('style-set', self._on_style_set_event, set_fg,
set_bg)
self.handlers[id_] = widget
def _on_style_set_event(self, widget, style, *opts):

View File

@ -342,7 +342,7 @@ class GCTooltip(BaseTooltip):
file_ = helpers.get_avatar_path(os.path.join(gajim.AVATAR_PATH, puny_room,
puny_name))
if file_:
_self.avatar_image.set_from_file(file_)
self.avatar_image.set_from_file(file_)
pix = self.avatar_image.get_pixbuf()
pix = gtkgui_helpers.get_scaled_pixbuf(pix, 'tooltip')
self.avatar_image.set_from_pixbuf(pix)