[gnome-shell] Revert "loginDialog: Better handle setting the active session"



commit ee360d87493ebaf365c7cd8d641d7aa6d78adba2
Author: Ray Strode <rstrode redhat com>
Date:   Wed Mar 18 12:43:58 2015 -0400

    Revert "loginDialog: Better handle setting the active session"
    
    This reverts commit 681861c8c76cb96ab2a6199df1153202a5c9e292.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740142

 js/gdm/loginDialog.js |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 6cb8d42..aaf55f3 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -323,15 +323,13 @@ const SessionMenuButton = new Lang.Class({
         }
     },
 
-    activeSessionChanged: function(sessionId) {
+    setActiveSession: function(sessionId) {
          if (sessionId == this._activeSessionId)
              return;
 
          this._activeSessionId = sessionId;
          this._updateOrnament();
-    },
 
-    setActiveSession: function(sessionId) {
          this.emit('session-activated', this._activeSessionId);
     },
 
@@ -790,7 +788,7 @@ const LoginDialog = new Lang.Class({
     },
 
     _onDefaultSessionChanged: function(client, sessionId) {
-        this._sessionMenuButton.activeSessionChanged(sessionId);
+        this._sessionMenuButton.setActiveSession(sessionId);
     },
 
     _shouldShowSessionMenuButton: function() {


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