Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar3/profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar3/profile.py')
-rw-r--r--src/sugar3/profile.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sugar3/profile.py b/src/sugar3/profile.py
index 172d2ad..7482da6 100644
--- a/src/sugar3/profile.py
+++ b/src/sugar3/profile.py
@@ -20,7 +20,7 @@
DEPRECATED. We are using GConf now to store preferences.
"""
-import gconf
+from gi.repository import GConf
import os
import logging
from ConfigParser import ConfigParser
@@ -68,7 +68,7 @@ class Profile(object):
privkey_hash = property(fget=_get_privkey_hash)
def is_valid(self):
- client = gconf.client_get_default()
+ client = GConf.Client.get_default()
nick = client.get_string('/desktop/sugar/user/nick')
color = client.get_string('/desktop/sugar/user/color')
@@ -140,7 +140,7 @@ class Profile(object):
path = os.path.join(env.get_profile_path(), 'config')
cp.read([path])
- client = gconf.client_get_default()
+ client = GConf.Client.get_default()
if cp.has_option('Buddy', 'NickName'):
name = cp.get('Buddy', 'NickName')
@@ -224,12 +224,12 @@ def get_profile():
def get_nick_name():
- client = gconf.client_get_default()
+ client = GConf.Client.get_default()
return client.get_string('/desktop/sugar/user/nick')
def get_color():
- client = gconf.client_get_default()
+ client = GConf.Client.get_default()
color = client.get_string('/desktop/sugar/user/color')
return XoColor(color)