Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readdb.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-03-01 20:41:39 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-03-01 20:41:39 (GMT)
commit5093d7f9400dfd532ce5e78d2e75fb18d169c1b9 (patch)
treee7c35f6dfe3c09d5529b2ed144a566d05feff611 /readdb.py
parentc82a205f2a32731d5e850c63ea84f7b6e98e9a45 (diff)
Remove use of gconf
Use profile instead Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'readdb.py')
-rw-r--r--readdb.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/readdb.py b/readdb.py
index f63564f..4cb11fa 100644
--- a/readdb.py
+++ b/readdb.py
@@ -22,7 +22,7 @@ import shutil
import sqlite3
import time
-import gconf
+from sugar3 import profile
from readbookmark import Bookmark
@@ -94,9 +94,8 @@ class BookmarkManager:
self._highlights = {0: []}
self._populate_highlights()
- client = gconf.client_get_default()
- self._user = client.get_string("/desktop/sugar/user/nick")
- self._color = client.get_string("/desktop/sugar/user/color")
+ self._user = profile.get_nick_name()
+ self._color = profile.get_color()
def add_bookmark(self, page, content, local=1):
# locale = 0 means that this is a bookmark originally