[gnome-shell] Add an initial-setup mode
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Add an initial-setup mode
- Date: Thu, 31 May 2012 13:51:14 +0000 (UTC)
commit 41c3795a7bb2aab606524449392417918b18d717
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 23 23:37:09 2012 -0400
Add an initial-setup mode
Use the newly introduced kiosk mode functionality, and define an
'initial-setup' mode that is suitable for
https://live.gnome.org/GnomeOS/Design/Whiteboards/InitialSetup
https://bugzilla.gnome.org/show_bug.cgi?id=676697
js/ui/main.js | 4 ++++
js/ui/sessionMode.js | 22 ++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index 6adcd03..8d7c48e 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -99,6 +99,10 @@ function createGDMSession() {
});
}
+function createInitialSetupSession() {
+ networkAgent = new NetworkAgent.NetworkAgent();
+}
+
function _initRecorder() {
let recorderSettings = new Gio.Settings({ schema: 'org.gnome.shell.recorder' });
let bindingSettings = new Gio.Settings({ schema: 'org.gnome.shell.keybindings' });
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index 124b876..f4f171d 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -55,6 +55,28 @@ const _modes = {
}
},
+ 'initial-setup': { hasOverview: false,
+ hasAppMenu: false,
+ showCalendarEvents: false,
+ allowSettings: false,
+ allowExtensions: false,
+ allowKeybindingsWhenModal: false,
+ hasRunDialog: false,
+ hasWorkspaces: false,
+ createSession: Main.createInitialSetupSession,
+ extraStylesheet: null,
+ statusArea: {
+ order: [
+ 'a11y', 'keyboard', 'volume'
+ ],
+ implementation: {
+ 'a11y': imports.ui.status.accessibility.ATIndicator,
+ 'keyboard': imports.ui.status.keyboard.XKBIndicator,
+ 'volume': imports.ui.status.volume.Indicator
+ }
+ }
+ },
+
'user': { hasOverview: true,
hasAppMenu: true,
showCalendarEvents: true,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]