[gnome-shell] sessionMode: Reindent



commit 59e27101377971deb1242f42b3c183f7c30d98fc
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Sep 3 22:23:22 2012 -0300

    sessionMode: Reindent
    
    This puts all the parameters at the same indent level, which makes the
    file much easier to read.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683156

 js/ui/sessionMode.js |  103 +++++++++++++++++++++++++------------------------
 1 files changed, 53 insertions(+), 50 deletions(-)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index 62c6da6..40a68f6 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -9,23 +9,24 @@ const Params = imports.misc.params;
 const DEFAULT_MODE = 'user';
 
 const _modes = {
-    'gdm': { hasOverview: false,
-             showCalendarEvents: false,
-             allowSettings: false,
-             allowExtensions: false,
-             allowKeybindingsWhenModal: true,
-             hasRunDialog: false,
-             hasWorkspaces: false,
-             hasWindows: false,
-             createUnlockDialog: Main.createGDMLoginDialog,
-             components: [],
-             panel: {
-                 left: [],
-                 center: ['dateMenu'],
-                 right: ['a11y', 'display', 'keyboard',
-                         'volume', 'battery', 'powerMenu']
-             }
-           },
+    'gdm': {
+        hasOverview: false,
+        showCalendarEvents: false,
+        allowSettings: false,
+        allowExtensions: false,
+        allowKeybindingsWhenModal: true,
+        hasRunDialog: false,
+        hasWorkspaces: false,
+        hasWindows: false,
+        createUnlockDialog: Main.createGDMLoginDialog,
+        components: [],
+        panel: {
+            left: [],
+            center: ['dateMenu'],
+            right: ['a11y', 'display', 'keyboard',
+                    'volume', 'battery', 'powerMenu']
+        }
+    },
 
     'lock-screen': {
         hasOverview: false,
@@ -45,40 +46,42 @@ const _modes = {
         },
     },
 
-    'initial-setup': { hasOverview: false,
-                       showCalendarEvents: false,
-                       allowSettings: false,
-                       allowExtensions: false,
-                       allowKeybindingsWhenModal: false,
-                       hasRunDialog: false,
-                       hasWorkspaces: false,
-                       components: ['keyring'],
-                       panel: {
-                           left: [],
-                           center: ['dateMenu'],
-                           right: ['a11y', 'keyboard', 'volume']
-                       }
-                     },
-
-    'user': { hasOverview: true,
-              showCalendarEvents: true,
-              allowSettings: true,
-              allowExtensions: true,
-              allowKeybindingsWhenModal: false,
-              hasRunDialog: true,
-              hasWorkspaces: true,
-              hasWindows: true,
-              createUnlockDialog: Main.createSessionUnlockDialog,
-              isLocked: false,
-              components: ['networkAgent', 'polkitAgent', 'telepathyClient',
-                           'keyring', 'recorder', 'autorunManager', 'automountManager'],
-              panel: {
-                  left: ['activities', 'appMenu'],
-                  center: ['dateMenu'],
-                  right: ['a11y', 'keyboard', 'volume', 'bluetooth',
-                          'network', 'battery', 'userMenu']
-              }
-            }
+    'initial-setup': {
+        hasOverview: false,
+        showCalendarEvents: false,
+        allowSettings: false,
+        allowExtensions: false,
+        allowKeybindingsWhenModal: false,
+        hasRunDialog: false,
+        hasWorkspaces: false,
+        components: ['keyring'],
+        panel: {
+            left: [],
+            center: ['dateMenu'],
+            right: ['a11y', 'keyboard', 'volume']
+        }
+    },
+
+    'user': {
+        hasOverview: true,
+        showCalendarEvents: true,
+        allowSettings: true,
+        allowExtensions: true,
+        allowKeybindingsWhenModal: false,
+        hasRunDialog: true,
+        hasWorkspaces: true,
+        hasWindows: true,
+        createUnlockDialog: Main.createSessionUnlockDialog,
+        isLocked: false,
+        components: ['networkAgent', 'polkitAgent', 'telepathyClient',
+                     'keyring', 'recorder', 'autorunManager', 'automountManager'],
+        panel: {
+            left: ['activities', 'appMenu'],
+            center: ['dateMenu'],
+            right: ['a11y', 'keyboard', 'volume', 'bluetooth',
+                    'network', 'battery', 'userMenu']
+        }
+    }
 };
 
 function listModes() {



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