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
This commit is contained in:
parent
f1ca96bbf0
commit
59e2710137
@ -9,23 +9,24 @@ const Params = imports.misc.params;
|
|||||||
const DEFAULT_MODE = 'user';
|
const DEFAULT_MODE = 'user';
|
||||||
|
|
||||||
const _modes = {
|
const _modes = {
|
||||||
'gdm': { hasOverview: false,
|
'gdm': {
|
||||||
showCalendarEvents: false,
|
hasOverview: false,
|
||||||
allowSettings: false,
|
showCalendarEvents: false,
|
||||||
allowExtensions: false,
|
allowSettings: false,
|
||||||
allowKeybindingsWhenModal: true,
|
allowExtensions: false,
|
||||||
hasRunDialog: false,
|
allowKeybindingsWhenModal: true,
|
||||||
hasWorkspaces: false,
|
hasRunDialog: false,
|
||||||
hasWindows: false,
|
hasWorkspaces: false,
|
||||||
createUnlockDialog: Main.createGDMLoginDialog,
|
hasWindows: false,
|
||||||
components: [],
|
createUnlockDialog: Main.createGDMLoginDialog,
|
||||||
panel: {
|
components: [],
|
||||||
left: [],
|
panel: {
|
||||||
center: ['dateMenu'],
|
left: [],
|
||||||
right: ['a11y', 'display', 'keyboard',
|
center: ['dateMenu'],
|
||||||
'volume', 'battery', 'powerMenu']
|
right: ['a11y', 'display', 'keyboard',
|
||||||
}
|
'volume', 'battery', 'powerMenu']
|
||||||
},
|
}
|
||||||
|
},
|
||||||
|
|
||||||
'lock-screen': {
|
'lock-screen': {
|
||||||
hasOverview: false,
|
hasOverview: false,
|
||||||
@ -45,40 +46,42 @@ const _modes = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
'initial-setup': { hasOverview: false,
|
'initial-setup': {
|
||||||
showCalendarEvents: false,
|
hasOverview: false,
|
||||||
allowSettings: false,
|
showCalendarEvents: false,
|
||||||
allowExtensions: false,
|
allowSettings: false,
|
||||||
allowKeybindingsWhenModal: false,
|
allowExtensions: false,
|
||||||
hasRunDialog: false,
|
allowKeybindingsWhenModal: false,
|
||||||
hasWorkspaces: false,
|
hasRunDialog: false,
|
||||||
components: ['keyring'],
|
hasWorkspaces: false,
|
||||||
panel: {
|
components: ['keyring'],
|
||||||
left: [],
|
panel: {
|
||||||
center: ['dateMenu'],
|
left: [],
|
||||||
right: ['a11y', 'keyboard', 'volume']
|
center: ['dateMenu'],
|
||||||
}
|
right: ['a11y', 'keyboard', 'volume']
|
||||||
},
|
}
|
||||||
|
},
|
||||||
|
|
||||||
'user': { hasOverview: true,
|
'user': {
|
||||||
showCalendarEvents: true,
|
hasOverview: true,
|
||||||
allowSettings: true,
|
showCalendarEvents: true,
|
||||||
allowExtensions: true,
|
allowSettings: true,
|
||||||
allowKeybindingsWhenModal: false,
|
allowExtensions: true,
|
||||||
hasRunDialog: true,
|
allowKeybindingsWhenModal: false,
|
||||||
hasWorkspaces: true,
|
hasRunDialog: true,
|
||||||
hasWindows: true,
|
hasWorkspaces: true,
|
||||||
createUnlockDialog: Main.createSessionUnlockDialog,
|
hasWindows: true,
|
||||||
isLocked: false,
|
createUnlockDialog: Main.createSessionUnlockDialog,
|
||||||
components: ['networkAgent', 'polkitAgent', 'telepathyClient',
|
isLocked: false,
|
||||||
'keyring', 'recorder', 'autorunManager', 'automountManager'],
|
components: ['networkAgent', 'polkitAgent', 'telepathyClient',
|
||||||
panel: {
|
'keyring', 'recorder', 'autorunManager', 'automountManager'],
|
||||||
left: ['activities', 'appMenu'],
|
panel: {
|
||||||
center: ['dateMenu'],
|
left: ['activities', 'appMenu'],
|
||||||
right: ['a11y', 'keyboard', 'volume', 'bluetooth',
|
center: ['dateMenu'],
|
||||||
'network', 'battery', 'userMenu']
|
right: ['a11y', 'keyboard', 'volume', 'bluetooth',
|
||||||
}
|
'network', 'battery', 'userMenu']
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function listModes() {
|
function listModes() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user