[gnome-shell] keyboard: Do the initial redraw in _init
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] keyboard: Do the initial redraw in _init
- Date: Mon, 28 Jan 2013 17:12:39 +0000 (UTC)
commit 7a79cfd76b20abf7786ee0e3428303a9da1108af
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jan 28 01:52:37 2013 -0500
keyboard: Do the initial redraw in _init
It doesn't seem like there's anything preventing us from doing this.
https://bugzilla.gnome.org/show_bug.cgi?id=692678
js/ui/keyboard.js | 4 +---
js/ui/main.js | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index c60649d..97e9223 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -142,7 +142,6 @@ const Keyboard = new Lang.Class({
this._focusInExtendedKeys = false;
this._timestamp = global.display.get_current_time_roundtrip();
- Main.layoutManager.connect('monitors-changed', Lang.bind(this, this._redraw));
this._keyboardSettings = new Gio.Settings({ schema: KEYBOARD_SCHEMA });
this._keyboardSettings.connect('changed', Lang.bind(this, this._settingsChanged));
@@ -161,9 +160,8 @@ const Keyboard = new Lang.Class({
}));
this._keyboardRequested = false;
this._keyboardRestingId = 0;
- },
- init: function () {
+ Main.layoutManager.connect('monitors-changed', Lang.bind(this, this._redraw));
this._redraw();
},
diff --git a/js/ui/main.js b/js/ui/main.js
index f8235f6..9c9404d 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -173,7 +173,7 @@ function start() {
componentManager = new Components.ComponentManager();
layoutManager.init();
- keyboard.init();
+ layoutManager.prepareStartupAnimation();
overview.init();
global.screen.override_workspace_layout(Meta.ScreenCorner.TOPLEFT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]