From 0c2aa1437d42e73825d16b4ccf6ab6284ff68fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 17 Sep 2010 01:45:13 +0200 Subject: [PATCH] magnifier: Sync MouseTrackingMode values with the gsettings enum The tracking modes "push" and "proportional" are swapped. https://bugzilla.gnome.org/show_bug.cgi?id=629884 --- js/ui/magnifier.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index e572961a0..ac53a299d 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -15,8 +15,8 @@ const MagnifierDBus = imports.ui.magnifierDBus; const MouseTrackingMode = { NONE: 0, CENTERED: 1, - PUSH: 2, - PROPORTIONAL: 3 + PROPORTIONAL: 2, + PUSH: 3 }; const ScreenPosition = { @@ -681,7 +681,7 @@ ZoomRegion.prototype = { * @mode: One of the enum MouseTrackingMode values. */ setMouseTrackingMode: function(mode) { - if (mode >= MouseTrackingMode.NONE && mode <= MouseTrackingMode.PROPORTIONAL) + if (mode >= MouseTrackingMode.NONE && mode <= MouseTrackingMode.PUSH) this._mouseTrackingMode = mode; },