From 0ba1f29e40d910898c44a6857804af8827bff513 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 18 Feb 2013 05:23:08 -0500 Subject: [PATCH] main: Merge two different session-mode-updated handlers https://bugzilla.gnome.org/show_bug.cgi?id=694321 --- js/ui/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/main.js b/js/ui/main.js index c95be0a53..015b4b620 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -71,6 +71,8 @@ let _cssStylesheet = null; let _overridesSettings = null; function _sessionUpdated() { + _loadDefaultStylesheet(); + wm.setCustomKeybindingHandler('panel-main-menu', Shell.KeyBindingMode.NORMAL | Shell.KeyBindingMode.OVERVIEW, @@ -106,8 +108,6 @@ function start() { } function startSession() { - sessionMode.connect('updated', _loadDefaultStylesheet); - shellDBusService = new ShellDBus.GnomeShell(); shellMountOpDBusService = new ShellMountOperation.GnomeShellMountOpHandler();