Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/progresslistener.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2010-10-06 17:39:37 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-10-06 17:39:37 (GMT)
commit18c756760b78ebdf7680a6cfc44600d90e5cbbb0 (patch)
tree82bf55cf63800431359ddde6149e9f9342ab7f53 /progresslistener.py
parent85cfa5b196e978424efd9f01af5cc93020dabedf (diff)
fix #2383 : Browse: history not right when resuming
Previously Browse does not saved the current tabs opened, saved the history and assumes the last url in the history is the current.
Diffstat (limited to 'progresslistener.py')
-rw-r--r--progresslistener.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/progresslistener.py b/progresslistener.py
index 23d4966..13886f6 100644
--- a/progresslistener.py
+++ b/progresslistener.py
@@ -36,6 +36,7 @@ class ProgressListener(gobject.GObject):
def __init__(self):
gobject.GObject.__init__(self)
+ self._location = None
self.total_requests = 0
self.completed_requests = 0
@@ -57,6 +58,7 @@ class ProgressListener(gobject.GObject):
self.completed_requests = 0
def onLocationChange(self, webProgress, request, location):
+ self._location = location
self.emit('location-changed', location)
def onProgressChange(self, webProgress, request, curSelfProgress,
@@ -90,3 +92,8 @@ class ProgressListener(gobject.GObject):
def onStatusChange(self, webProgress, request, status, message):
pass
+
+ def _get_location(self):
+ return self._location
+
+ location = gobject.property(type=object, getter=_get_location)