From dec602fda0890bdbfb121107b9bb39f7954a9cd5 Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Fri, 25 Nov 2011 02:00:52 +0000 Subject: Port from PyGTK to PyGI, renaming Was done running the pygi-convert.sh script. Signed-off-by: Manuel QuiƱones Acked-by: Simon Schampijer --- (limited to 'model.py') diff --git a/model.py b/model.py index f6d7eae..d3d26e4 100644 --- a/model.py +++ b/model.py @@ -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'] = [] -- cgit v0.9.1