From bf4b1a3f8f47984f2c1895e67bd198c89b94173f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 10 Apr 2007 15:23:01 -0400 Subject: [PATCH] Fix icon changed signal handling in sugar PS bindings --- sugar/presence/buddy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sugar/presence/buddy.py b/sugar/presence/buddy.py index 479d1652..f1b1c29c 100644 --- a/sugar/presence/buddy.py +++ b/sugar/presence/buddy.py @@ -93,13 +93,13 @@ class Buddy(gobject.GObject): def object_path(self): return self._object_path - def _emit_icon_changed_signal(self): - self._icon = self._buddy.GetIcon() + def _emit_icon_changed_signal(self, icon_data): + self._icon = icon_data self.emit('icon-changed') return False - def _icon_changed_cb(self): - gobject.idle_add(self._emit_icon_changed_signal) + def _icon_changed_cb(self, icon_data): + gobject.idle_add(self._emit_icon_changed_signal, icon_data) def _emit_joined_activity_signal(self, object_path): self.emit('joined-activity', self._ps_new_object(object_path))