[polari] chatView: Update style on initialization



commit 68e2d81795020d282531300ea43a6a2ee4267826
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Sep 21 01:22:15 2014 +0200

    chatView: Update style on initialization
    
    Apparently we can not rely on GtkWidget::style-updated being emitted
    initially, so call the handler explicitly to make sure the colors
    we use are set up properly.

 src/chatView.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index b5b6000..89334d5 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -88,6 +88,7 @@ const ChatView = new Lang.Class({
 
         this.widget.connect('style-updated',
                             Lang.bind(this, this._onStyleUpdated));
+        this._onStyleUpdated();
 
         this._room = room;
         this._state = { lastNick: null, lastTimestamp: 0 };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]