diff options
author | Manuel Quiñones <manuq@laptop.org> | 2011-12-20 14:05:13 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2011-12-20 14:05:13 (GMT) |
commit | b76dc661761f277c74a3869d7c823fa14fb70f60 (patch) | |
tree | eb62522e042d7abe8a78bbaa856b8c93fc9520d0 /browser.py | |
parent | 7ed6892654562a343ebf31a311a82db715b00eb9 (diff) |
Remove old zoom methods
Now the WebKit.WebView zoom_in() and zoom_out() methods are called and
the page is effectively zoomed.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Diffstat (limited to 'browser.py')
-rw-r--r-- | browser.py | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -448,22 +448,6 @@ class Browser(WebKit.WebView): uri = self.web_navigation.currentURI persist.saveURI(uri, self.doc_shell, None, None, None, local_file) - def zoom_in(self): - contentViewer = self.doc_shell.queryInterface( \ - interfaces.nsIDocShell).contentViewer - if contentViewer is not None: - markupDocumentViewer = contentViewer.queryInterface( \ - interfaces.nsIMarkupDocumentViewer) - markupDocumentViewer.fullZoom += _ZOOM_AMOUNT - - def zoom_out(self): - contentViewer = self.doc_shell.queryInterface( \ - interfaces.nsIDocShell).contentViewer - if contentViewer is not None: - markupDocumentViewer = contentViewer.queryInterface( \ - interfaces.nsIMarkupDocumentViewer) - markupDocumentViewer.fullZoom -= _ZOOM_AMOUNT - def get_history_index(self): return sessionstore.get_history_index(self) |