From 6cbdb6beae016df6f60d7c28621a7ea51973a954 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 28 Nov 2012 19:18:29 +0100 Subject: [PATCH] sessionMode: Define a new foo mode A new parameter called buttonLayout was introduced to parametrize the schema used for the 'button-layout' setting. https://bugzilla.gnome.org/show_bug.cgi?id=689234 --- js/ui/sessionMode.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js index 73f0fcb5f..ffe090d78 100644 --- a/js/ui/sessionMode.js +++ b/js/ui/sessionMode.js @@ -21,6 +21,7 @@ const _modes = { isLocked: false, isGreeter: false, isPrimary: false, + buttonLayout: ['button-layout', 'org.gnome.shell.overrides'], unlockDialog: null, components: [], panel: { @@ -101,6 +102,29 @@ const _modes = { right: ['a11y', 'keyboard', 'volume', 'bluetooth', 'network', 'battery', 'userMenu'] } + }, + + 'foo': { + hasOverview: true, + showCalendarEvents: true, + allowSettings: true, + allowExtensions: true, + hasRunDialog: true, + hasWorkspaces: true, + hasWindows: true, + hasNotifications: true, + isLocked: false, + isPrimary: true, + buttonLayout: ['button-layout', 'org.gnome.shell-foo.overrides'], + unlockDialog: imports.ui.unlockDialog.UnlockDialog, + components: ['networkAgent', 'polkitAgent', 'telepathyClient', + 'keyring', 'recorder', 'autorunManager', 'automountManager'], + panel: { + left: ['activities', 'appMenu'], + center: ['dateMenu'], + right: ['a11y', 'keyboard', 'volume', 'bluetooth', + 'network', 'battery', 'userMenu'] + } } };