Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/Owner.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/Owner.py')
-rw-r--r--shell/Owner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/Owner.py b/shell/Owner.py
index 14cd636..81b390e 100644
--- a/shell/Owner.py
+++ b/shell/Owner.py
@@ -5,6 +5,7 @@ import base64
from sugar import env
from sugar.p2p import Stream
from sugar.presence import PresenceService
+from sugar import conf
PRESENCE_SERVICE_TYPE = "_presence_olpc._tcp"
@@ -29,7 +30,8 @@ class ShellOwner(object):
def announce(self):
# Create and announce our presence
- props = { 'color': "#deadbe" }
+ color = conf.get_profile().get_color()
+ props = { 'color': color.get_fill_color() }
self._service = self._pservice.register_service(self._nick,
PRESENCE_SERVICE_TYPE, properties=props)
print "Owner '%s' using port %d" % (self._nick, self._service.get_port())