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 'sessionhistory.py') 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) -- cgit v0.9.1