diff options
author | Sam Parkinson <sam.parkinson3@gmail.com> | 2014-06-14 11:33:02 (GMT) |
---|---|---|
committer | Sam Parkinson <sam.parkinson3@gmail.com> | 2014-06-14 11:33:02 (GMT) |
commit | b14ced42b25130b61fc9bfdf988d3cb82562f1ec (patch) | |
tree | 49e8072d5af3802248dc223c5ca3fdbc66cc7be0 /readdb.py | |
parent | 4b12edd7a911d89d289ca218715cedef5b21d996 (diff) |
Show the bookmark title in the icon's palettetitle-in-palette
Diffstat (limited to 'readdb.py')
-rw-r--r-- | readdb.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -22,6 +22,7 @@ import shutil import sqlite3 import time import base64 +import json from gi.repository import GObject from sugar3 import profile @@ -89,7 +90,7 @@ class BookmarkManager(GObject.GObject): __gsignals__ = { 'added_bookmark': (GObject.SignalFlags.RUN_FIRST, - None, ([int])), + None, ([int, str])), 'removed_bookmark': (GObject.SignalFlags.RUN_FIRST, None, ([int])), } @@ -127,7 +128,8 @@ class BookmarkManager(GObject.GObject): self._conn.commit() self._resync_bookmark_cache() - self.emit('added_bookmark', page + 1) + title = json.loads(content)['title'] + self.emit('added_bookmark', page + 1, title) def del_bookmark(self, page): # We delete only the locally made bookmark |