From 18c756760b78ebdf7680a6cfc44600d90e5cbbb0 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Wed, 06 Oct 2010 17:39:37 +0000 Subject: 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. --- (limited to 'progresslistener.py') 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) -- cgit v0.9.1