diff options
Diffstat (limited to 'sessionhistory.py')
-rw-r--r-- | sessionhistory.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sessionhistory.py b/sessionhistory.py index be4ab93..5c659f0 100644 --- a/sessionhistory.py +++ b/sessionhistory.py @@ -16,24 +16,20 @@ import logging -import gobject -import xpcom -from xpcom.components import interfaces +from gi.repository import GObject -class HistoryListener(gobject.GObject): - _com_interfaces_ = interfaces.nsISHistoryListener - +class HistoryListener(GObject.GObject): __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) |