Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser.py
diff options
context:
space:
mode:
authorLucian Branescu Mihaila <lucian.branescu@gmail.com>2010-07-13 20:27:19 (GMT)
committer Lucian Branescu Mihaila <lucian.branescu@gmail.com>2010-07-13 20:27:19 (GMT)
commite7eb85615b416300191d9c52d5bafc65c619bc78 (patch)
tree7ba93653a811fe2dbee474af004bb0437bde4011 /browser.py
parent2fd94accab0cd7276d6b47b93bc024aae53c9237 (diff)
Speculative fixes for loading from journal and loading progress. Not tested yet.
Diffstat (limited to 'browser.py')
-rw-r--r--browser.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/browser.py b/browser.py
index c80fe8b..d311edf 100644
--- a/browser.py
+++ b/browser.py
@@ -243,10 +243,9 @@ class Browser(webkit.WebView):
return entries
def set_session(self, data):
- history = webkit.WebBackForwardList()
+ history = self.get_back_forward_list()
# webkitgtk+ v1.3.1+
- #history = self.get_back_forward_list()
#history.clear()
# temporary workaround to clear history
@@ -260,10 +259,10 @@ class Browser(webkit.WebView):
entry = webkit.WebHistoryItem(entry_dict['url'], entry_dict['title'])
history.add_item(entry)
- #if data:
- # history.go_to_item(len(data) - 1)
- #else:
- # self.load_uri('about:blank')
+ if data:
+ history.go_to_item(history.get_current_item())
+ else:
+ self.load_uri('about:blank')
class PopupDialog(gtk.Window):
def __init__(self):