Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/conf
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-09-08 11:53:55 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-09-08 11:53:55 (GMT)
commit8d27527fd90eb686ec3b65d49d6f2e685106e16f (patch)
tree2820fbd05e019ac1247c2c7d3b915662e5be629a /shell/conf
parent7abb2f73879a5d73d9c0b52bc321f793b378ef9f (diff)
Integrate new colors table
Diffstat (limited to 'shell/conf')
-rw-r--r--shell/conf/Profile.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/shell/conf/Profile.py b/shell/conf/Profile.py
index c3ca053..ecc4aba 100644
--- a/shell/conf/Profile.py
+++ b/shell/conf/Profile.py
@@ -1,14 +1,14 @@
import os
from ConfigParser import ConfigParser
-from sugar.canvas.IconColor import IconColor
+from sugar.canvas import IconColor
from sugar import env
class _Profile:
def __init__(self,):
self._path = env.get_profile_path()
self._nick_name = None
- self._color = None
+ self._color = IconColor.IconColor()
self._ensure_dirs()
@@ -18,10 +18,9 @@ class _Profile:
if cp.has_option('Buddy', 'NickName'):
self._nick_name = cp.get('Buddy', 'NickName')
if cp.has_option('Buddy', 'Color'):
- self._color = IconColor(cp.get('Buddy', 'Color'))
-
- if self._color == None:
- self.set_color(IconColor())
+ fill_color = cp.get('Buddy', 'Color')
+ if IconColor.is_valid(fill_color):
+ self._color = IconColor.IconColor(fill_color)
def _ensure_dirs(self):
try: