Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser.py
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2011-06-15 16:07:10 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2011-06-15 16:07:10 (GMT)
commita6c6230437430ecd364c46b4d583be890054d8e1 (patch)
tree4b0a5735f7b73ebaa9223ebb1b5a5e9a65b7846f /browser.py
parent440f17f6482049e557f9da517e62ee0585f55009 (diff)
set/restore index patch
Diffstat (limited to 'browser.py')
-rw-r--r--browser.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/browser.py b/browser.py
index 649a71e..733b12c 100644
--- a/browser.py
+++ b/browser.py
@@ -357,6 +357,12 @@ class Browser(WebView):
interfaces.nsIMarkupDocumentViewer)
markupDocumentViewer.fullZoom -= _ZOOM_AMOUNT
+ def get_history_index(self):
+ return self.web_navigation.sessionHistory.index
+
+ def set_history_index(self, index):
+ self.web_navigation.gotoIndex(index)
+
class PopupDialog(gtk.Window):
def __init__(self):