Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser.py
diff options
context:
space:
mode:
authorManuel 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)
commitb76dc661761f277c74a3869d7c823fa14fb70f60 (patch)
treeeb62522e042d7abe8a78bbaa856b8c93fc9520d0 /browser.py
parent7ed6892654562a343ebf31a311a82db715b00eb9 (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.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/browser.py b/browser.py
index 69713ca..3c33c47 100644
--- a/browser.py
+++ b/browser.py
@@ -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)