[gnome-shell/wip/classic: 2/4] sessionMode: Define a new foo mode
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/classic: 2/4] sessionMode: Define a new foo mode
- Date: Wed, 28 Nov 2012 18:24:01 +0000 (UTC)
commit a493f744fd4606e66b73d0164f217ddf33a828b5
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Nov 28 19:18:29 2012 +0100
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 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index 73f0fcb..ffe090d 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']
+ }
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]