[gnome-shell] main: Remove _initUserSession()
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] main: Remove _initUserSession()
- Date: Tue, 22 May 2012 17:47:05 +0000 (UTC)
commit f6a2c92bfa8a1e77855d809ddc2e947764bd747f
Author: Florian MÃllner <fmuellner gnome org>
Date: Thu May 17 15:47:32 2012 +0200
main: Remove _initUserSession()
In Shell.SessionType.USER mode, two separate setup functions were
used during startup. With the new feature-based checks, the second
one is now almost empty, so move its remaining code into the first
function and remove it.
https://bugzilla.gnome.org/show_bug.cgi?id=676156
js/ui/main.js | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index f4150c5..21d7bc5 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -85,6 +85,8 @@ function _createUserSession() {
automountManager = new AutomountManager.AutomountManager();
autorunManager = new AutorunManager.AutorunManager();
networkAgent = new NetworkAgent.NetworkAgent();
+
+ _initRecorder();
}
function _createGDMSession() {
@@ -131,10 +133,6 @@ function _initRecorder() {
});
}
-function _initUserSession() {
- _initRecorder();
-}
-
function start() {
// These are here so we don't break compatibility.
global.logError = window.log;
@@ -217,9 +215,6 @@ function start() {
keyboard.init();
overview.init();
- if (sessionMode.sessionType == Shell.SessionType.USER)
- _initUserSession();
-
if (sessionMode.hasWorkspaces)
global.screen.override_workspace_layout(Meta.ScreenCorner.TOPLEFT,
false, -1, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]