[gnome-shell/gnome-3-8] Keyboard: clear currentSource after destruction



commit d18e084cd5c8661f5e935e5a098723310075c88b
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 d5171da..bb67c71 100644
--- a/js/ui/status/keyboard.js
+++ b/js/ui/status/keyboard.js
@@ -520,6 +520,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]