Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/home/FriendsModel.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/home/FriendsModel.py')
-rw-r--r--shell/home/FriendsModel.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/home/FriendsModel.py b/shell/home/FriendsModel.py
index 0988b8a..0df084c 100644
--- a/shell/home/FriendsModel.py
+++ b/shell/home/FriendsModel.py
@@ -1,6 +1,7 @@
import gobject
from sugar.presence import PresenceService
+from sugar.canvas.IconColor import IconColor
class Friend:
def __init__(self, buddy):
@@ -9,6 +10,10 @@ class Friend:
def get_name(self):
return self._buddy.get_name()
+ def get_color(self):
+ color = self._buddy.get_color()
+ return IconColor(color)
+
class FriendsModel(gobject.GObject):
__gsignals__ = {
'friend-added': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,