diff options
author | Manuel Quiñones <manuq@laptop.org> | 2011-11-25 02:00:52 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2011-11-25 02:00:52 (GMT) |
commit | dec602fda0890bdbfb121107b9bb39f7954a9cd5 (patch) | |
tree | b570a56bf29d76801347934ffa74feb2451de7e7 /model.py | |
parent | 6cd0ba03d5494b144a6c05dcc59f7ce9d39e6939 (diff) |
Port from PyGTK to PyGI, renaming
Was done running the pygi-convert.sh script.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'model.py')
-rw-r--r-- | model.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -18,21 +18,21 @@ import cjson import sha -import gobject +from gi.repository import GObject import base64 -class Model(gobject.GObject): +class Model(GObject.GObject): ''' The model of web-activity which uses json to serialize its data to a file and deserealize from it. ''' __gsignals__ = { - 'add_link': (gobject.SIGNAL_RUN_FIRST, - gobject.TYPE_NONE, ([int])), + 'add_link': (GObject.SignalFlags.RUN_FIRST, + None, ([int])), } def __init__(self): - gobject.GObject.__init__(self) + GObject.GObject.__init__(self) self.data = {} self.data['shared_links'] = [] self.data['deleted'] = [] |