[gnome-characters/wip/properties: 9/15] character: Remove decomposition row before adding



commit dcb8727cdb1d358d65273f0bc0ee25708d216c6c
Author: Daiki Ueno <dueno src gnome org>
Date:   Tue Feb 10 05:06:45 2015 +0900

    character: Remove decomposition row before adding

 src/character.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/character.js b/src/character.js
index bfc0f62..8b2092b 100644
--- a/src/character.js
+++ b/src/character.js
@@ -150,6 +150,8 @@ const CharacterDialog = new Lang.Class({
         this._category_label.label = Gc.character_category(uc);
         this._script_label.label = Gc.character_script(uc);
         this._block_label.label = Gc.character_block(uc);
+
+        this._detail_grid.remove_row(4);
         let result = Gc.character_decomposition(uc);
         if (result.len > 0) {
             let decomposition = [];
@@ -173,8 +175,6 @@ const CharacterDialog = new Lang.Class({
                                             title,
                                             Gtk.PositionType.RIGHT,
                                             1, 1);
-        } else {
-            this._detail_grid.remove_row(4);
         }
 
         let children = this._related_listbox.get_children();


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