From 6ec0f8f7c136c8b5c06ecbf007633a19e7287a78 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Tue, 5 Feb 2008 03:03:22 +0000 Subject: [PATCH] made zoom functions thunderbird compatible --- content/buffers.js | 12 ++++++------ content/events.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/buffers.js b/content/buffers.js index f18ca40c..47e04a89 100644 --- a/content/buffers.js +++ b/content/buffers.js @@ -47,9 +47,9 @@ vimperator.Buffer = function () //{{{ } if (fullZoom) - getBrowser().mCurrentBrowser.markupDocumentViewer.fullZoom = value / 100.0; + getBrowser().markupDocumentViewer.fullZoom = value / 100.0; else - getBrowser().mCurrentBrowser.markupDocumentViewer.textZoom = value / 100.0; + getBrowser().markupDocumentViewer.textZoom = value / 100.0; vimperator.echo((fullZoom ? "Full zoom: " : "Text zoom: ") + value + "%"); @@ -63,9 +63,9 @@ vimperator.Buffer = function () //{{{ function bumpZoomLevel(steps, fullZoom) { if (fullZoom) - var value = getBrowser().mCurrentBrowser.markupDocumentViewer.fullZoom * 100.0; + var value = getBrowser().markupDocumentViewer.fullZoom * 100.0; else - var value = getBrowser().mCurrentBrowser.markupDocumentViewer.textZoom * 100.0; + var value = getBrowser().markupDocumentViewer.textZoom * 100.0; var index = -1; if (steps <= 0) @@ -208,7 +208,7 @@ vimperator.Buffer = function () //{{{ get textZoom() { - return getBrowser().mCurrentBrowser.markupDocumentViewer.textZoom * 100; + return getBrowser().markupDocumentViewer.textZoom * 100; }, set textZoom(value) { @@ -217,7 +217,7 @@ vimperator.Buffer = function () //{{{ get fullZoom() { - return getBrowser().mCurrentBrowser.markupDocumentViewer.fullZoom * 100; + return getBrowser().markupDocumentViewer.fullZoom * 100; }, set fullZoom(value) { diff --git a/content/events.js b/content/events.js index c14f7b31..f202962a 100644 --- a/content/events.js +++ b/content/events.js @@ -1272,7 +1272,7 @@ vimperator.Events = function () //{{{ switch (aData) { case "accessibility.browsewithcaret": - var value = vimperator.options.getFirefoxPref("accessibility.browsewithcaret", false); + var value = vimperator.options.getPref("accessibility.browsewithcaret", false); vimperator.mode = value ? vimperator.modes.CARET : vimperator.modes.NORMAL; break; }