[gnome-shell] popupMenu: Set initial visibility of settings items
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] popupMenu: Set initial visibility of settings items
- Date: Thu, 20 Sep 2012 18:04:17 +0000 (UTC)
commit e8ebe4de142772041c6e2d681d92322776ab361c
Author: Florian MÃllner <fmuellner gnome org>
Date: Thu Sep 20 15:58:08 2012 +0200
popupMenu: Set initial visibility of settings items
With the recent session mode changes, the visibility of settings
items is now only set on sessionMode::updated - while the signal
is emitted when the session mode is initialized, settings items
that are added after that are visible regardless of the allowSettings
setting until the next sessionMode::updated signal is received.
Fix this by explicitly setting the initial visibility of settings
items.
https://bugzilla.gnome.org/show_bug.cgi?id=684473
js/ui/popupMenu.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index c4b6c4e..23368a5 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -904,6 +904,7 @@ const PopupMenuBase = new Lang.Class({
app.activate();
});
+ menuItem.actor.visible = Main.sessionMode.allowSettings;
this._settingsActions[desktopFile] = menuItem;
return menuItem;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]