Export the color in the env and initialize the buddy with it

This commit is contained in:
Marco Pesenti Gritti
2006-09-11 15:18:57 +02:00
parent d14628fdfa
commit 6a90ef11d3
3 changed files with 9 additions and 10 deletions
+2
View File
@@ -3,6 +3,7 @@ import logging
import gobject
import dbus, dbus.service
from sugar import env
PRESENCE_SERVICE_TYPE = "_presence_olpc._tcp"
@@ -287,6 +288,7 @@ class Owner(Buddy):
def __init__(self, ps, bus_name, object_id, nick):
Buddy.__init__(self, bus_name, object_id, None)
self._nick_name = nick
self._color = env.get_color()
self._ps = ps
def add_service(self, service):