Use the new BuddyModel color-changed signal

This commit is contained in:
Dan Williams 2006-09-22 17:37:41 -04:00
parent d12c57895c
commit e92548df5c

View File

@ -10,8 +10,9 @@ class BuddyIcon(MenuIcon):
self._buddy = buddy
self._buddy.connect('appeared', self.__buddy_presence_change_cb)
self._buddy.connect('disappeared', self.__buddy_presence_change_cb)
self._buddy.connect('color-changed', self.__buddy_presence_change_cb)
def __buddy_presence_change_cb(self, buddy):
def __buddy_presence_change_cb(self, buddy, color=None):
# Update the icon's color when the buddy comes and goes
self.set_property('color', buddy.get_color())