[Sugar-devel] [PATCH 2/2] Remove old zoom methods
Manuel Quiñones
manuq at laptop.org
Tue Dec 20 09:07:22 EST 2011
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 at laptop.org>
---
browser.py | 16 ----------------
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)
--
1.7.7.3
More information about the Sugar-devel
mailing list