[gnome-shell] magnifier: Sync MouseTrackingMode values with the gsettings enum



commit 0c2aa1437d42e73825d16b4ccf6ab6284ff68fdc
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Sep 17 01:45:13 2010 +0200

    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 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index e572961..ac53a29 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;
     },
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]