Add current activity accessor

This commit is contained in:
Dan Williams 2006-09-21 16:44:19 -04:00
parent 66a1539895
commit ab7ef75518

View File

@ -99,6 +99,11 @@ class Buddy(gobject.GObject):
def get_icon(self): def get_icon(self):
return self._buddy.getIcon() return self._buddy.getIcon()
def get_current_activity(self):
if self._properties.has_key('curact'):
return self._properties['curact']
return None
def get_icon_pixbuf(self): def get_icon_pixbuf(self):
icon = self._buddy.getIcon() icon = self._buddy.getIcon()
if icon and len(icon): if icon and len(icon):