[gnome-shell] userMenu: Update logout item when always-show-log-out changes



commit fd2944fa8d905460212c73fa943d229f2529da84
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Jan 30 15:19:54 2013 +0100

    userMenu: Update logout item when always-show-log-out changes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692996

 js/ui/userMenu.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index a967ac2..40710a5 100644
--- a/js/ui/userMenu.js
+++ b/js/ui/userMenu.js
@@ -555,6 +555,8 @@ const UserMenuButton = new Lang.Class({
                                        Lang.bind(this, this._updateLogout));
         this._lockdownSettings.connect('changed::' + DISABLE_LOCK_SCREEN_KEY,
                                        Lang.bind(this, this._updateLockScreen));
+        global.settings.connect('changed::' + ALWAYS_SHOW_LOG_OUT_KEY,
+                                Lang.bind(this, this._updateLogout));
         this._screenSaverSettings.connect('changed::' + SHOW_FULL_NAME_IN_TOP_BAR_KEY,
                                            Lang.bind(this, this._updateUserName));
         this._privacySettings.connect('changed::' + SHOW_FULL_NAME_IN_TOP_BAR_KEY,



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