[gnome-characters] characterList: Avoid CSS set_state warnings



commit a5184697716366c785e4781937d01555401adaf2
Author: Daiki Ueno <dueno src gnome org>
Date:   Mon Dec 14 16:49:43 2015 +0900

    characterList: Avoid CSS set_state warnings

 src/characterList.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/characterList.js b/src/characterList.js
index e43ef2c..8522d79 100644
--- a/src/characterList.js
+++ b/src/characterList.js
@@ -145,7 +145,9 @@ const CharacterListWidget = new Lang.Class({
         let filtered = Params.filter(params, { fontDescription: null });
         params = Params.fill(params, {});
         this.parent(params);
-        this.get_style_context().add_class('character-list');
+        let context = this.get_style_context();
+        context.add_class('character-list');
+        context.save();
         this._cellsPerRow = CELLS_PER_ROW;
         this._fontDescription = filtered.fontDescription;
         this._characters = [];
@@ -316,7 +318,9 @@ const CharacterListView = new Lang.Class({
             visible: true
         });
         scroll.add(this._characterList);
-        scroll.get_style_context().add_class('character-list-scroll');
+        let context = scroll.get_style_context();
+        context.add_class('character-list-scroll');
+        context.save();
         this.add_named(scroll, 'character-list');
         this.visible_child_name = 'character-list';
 


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