Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/progresslistener.py
diff options
context:
space:
mode:
authorManuel 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)
commitdec602fda0890bdbfb121107b9bb39f7954a9cd5 (patch)
treeb570a56bf29d76801347934ffa74feb2451de7e7 /progresslistener.py
parent6cd0ba03d5494b144a6c05dcc59f7ce9d39e6939 (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 'progresslistener.py')
-rw-r--r--progresslistener.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/progresslistener.py b/progresslistener.py
index fb08b13..2a78c42 100644
--- a/progresslistener.py
+++ b/progresslistener.py
@@ -16,16 +16,16 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-import gobject
+from gi.repository import GObject
import xpcom
from xpcom.components import interfaces
-class ProgressListener(gobject.GObject):
+class ProgressListener(GObject.GObject):
_com_interfaces_ = interfaces.nsIWebProgressListener
def __init__(self):
- gobject.GObject.__init__(self)
+ GObject.GObject.__init__(self)
self._location = None
self._loading = False
@@ -90,14 +90,14 @@ class ProgressListener(gobject.GObject):
def _get_location(self):
return self._location
- location = gobject.property(type=object, getter=_get_location)
+ location = GObject.property(type=object, getter=_get_location)
def _get_loading(self):
return self._loading
- loading = gobject.property(type=bool, default=False, getter=_get_loading)
+ loading = GObject.property(type=bool, default=False, getter=_get_loading)
def _get_progress(self):
return self._progress
- progress = gobject.property(type=float, getter=_get_progress)
+ progress = GObject.property(type=float, getter=_get_progress)