diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2011-06-15 16:07:10 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2011-06-15 16:07:10 (GMT) |
commit | a6c6230437430ecd364c46b4d583be890054d8e1 (patch) | |
tree | 4b0a5735f7b73ebaa9223ebb1b5a5e9a65b7846f /browser.py | |
parent | 440f17f6482049e557f9da517e62ee0585f55009 (diff) |
set/restore index patch
Diffstat (limited to 'browser.py')
-rw-r--r-- | browser.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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): |