[gnome-shell] autorunManager: Define this._session as an instance of GnomeSession



commit 8035f303050b37910cacebf1ea77531d2e080e1d
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Feb 8 17:25:08 2013 +0100

    autorunManager: Define this._session as an instance of GnomeSession
    
    This is a fallout from 526a16298ca8113d0ed9bd625eebd5645eecac66.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693161

 js/ui/components/autorunManager.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/components/autorunManager.js b/js/ui/components/autorunManager.js
index fc84b3f..d5526ef 100644
--- a/js/ui/components/autorunManager.js
+++ b/js/ui/components/autorunManager.js
@@ -4,6 +4,7 @@ const Lang = imports.lang;
 const Gio = imports.gi.Gio;
 const St = imports.gi.St;
 
+const GnomeSession = imports.misc.gnomeSession;
 const Main = imports.ui.main;
 const MessageTray = imports.ui.messageTray;
 const ShellMountOperation = imports.ui.shellMountOperation;
@@ -161,6 +162,7 @@ const AutorunManager = new Lang.Class({
     Name: 'AutorunManager',
 
     _init: function() {
+        this._session = new GnomeSession.SessionManager();
         this._volumeMonitor = Gio.VolumeMonitor.get();
 
         this._transDispatcher = new AutorunTransientDispatcher(this);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]