main: Merge two different session-mode-updated handlers

https://bugzilla.gnome.org/show_bug.cgi?id=694321
This commit is contained in:
Jasper St. Pierre 2013-02-18 05:23:08 -05:00
parent 3b1e536822
commit 0ba1f29e40

View File

@ -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();