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 /sessionhistory.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 'sessionhistory.py')
-rw-r--r-- | sessionhistory.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sessionhistory.py b/sessionhistory.py index be4ab93..615a98d 100644 --- a/sessionhistory.py +++ b/sessionhistory.py @@ -16,24 +16,24 @@ import logging -import gobject +from gi.repository import GObject import xpcom from xpcom.components import interfaces -class HistoryListener(gobject.GObject): +class HistoryListener(GObject.GObject): _com_interfaces_ = interfaces.nsISHistoryListener __gsignals__ = { - 'session-history-changed': (gobject.SIGNAL_RUN_FIRST, - gobject.TYPE_NONE, + 'session-history-changed': (GObject.SignalFlags.RUN_FIRST, + None, ([int])), - 'session-link-changed': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, + 'session-link-changed': (GObject.SignalFlags.RUN_FIRST, None, ([str])), } def __init__(self): - gobject.GObject.__init__(self) + GObject.GObject.__init__(self) self._wrapped_self = xpcom.server.WrapObject( \ self, interfaces.nsISHistoryListener) |