[gnome-shell] Keyboard: clear currentSource after destruction
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Keyboard: clear currentSource after destruction
- Date: Wed, 24 Apr 2013 19:47:17 +0000 (UTC)
commit aef70152de8a2a7b5a8b558514566a7f6cd3746b
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Apr 24 21:38:00 2013 +0200
Keyboard: clear currentSource after destruction
StLabel doesn't like that we set its properties after destructions,
and this would happen in currentInputSourceChanged() at the end,
when setting the ornament.
js/ui/status/keyboard.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index 28e5b86..4880fd2 100644
--- a/js/ui/status/keyboard.js
+++ b/js/ui/status/keyboard.js
@@ -459,6 +459,7 @@ const InputSourceIndicator = new Lang.Class({
this._inputSources = {};
this._ibusSources = {};
+ this._currentSource = null;
let inputSourcesByShortName = {};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]