From ab7ef75518c66a4a6060812f71c0e87a19f350aa Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 21 Sep 2006 16:44:19 -0400 Subject: [PATCH] Add current activity accessor --- sugar/presence/Buddy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sugar/presence/Buddy.py b/sugar/presence/Buddy.py index 5df4bb0d..da664b6d 100644 --- a/sugar/presence/Buddy.py +++ b/sugar/presence/Buddy.py @@ -99,6 +99,11 @@ class Buddy(gobject.GObject): def get_icon(self): 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): icon = self._buddy.getIcon() if icon and len(icon):