[gnome-characters] characterList: Remove manual adjustment of font size



commit 3fb6ee444b9d0927d972c594d6cd4aeee6021f95
Author: Daiki Ueno <ueno gnu org>
Date:   Tue Feb 10 22:42:45 2015 +0900

    characterList: Remove manual adjustment of font size

 data/org.gnome.Characters.gschema.xml |    2 +-
 src/characterList.js                  |    7 ++-----
 2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/data/org.gnome.Characters.gschema.xml b/data/org.gnome.Characters.gschema.xml
index ccf6b9d..ec1808a 100644
--- a/data/org.gnome.Characters.gschema.xml
+++ b/data/org.gnome.Characters.gschema.xml
@@ -1,7 +1,7 @@
 <schemalist gettext-domain="org.gnome.Characters">
   <schema id="org.gnome.Characters" path="/org/gnome/Characters/">
     <key name="font" type="s">
-      <default>'Cantarell 100'</default>
+      <default>'Cantarell 50'</default>
       <summary>Font to display characters</summary>
       <description>
        Use the font to render characters on the character list.
diff --git a/src/characterList.js b/src/characterList.js
index 35e22e0..bb19f21 100644
--- a/src/characterList.js
+++ b/src/characterList.js
@@ -31,7 +31,7 @@ const Util = imports.util;
 
 const BASELINE_OFFSET = 0.85;
 const CELLS_PER_ROW = 5;
-const CELL_SIZE = 100;
+const CELL_SIZE = 50;
 
 function getCellSize(fontDescription) {
     if (fontDescription == null
@@ -90,7 +90,7 @@ const CharacterListWidget = new Lang.Class({
         'font': GObject.ParamSpec.string(
             'font', '', '',
             GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
-            'Cantarell 100')
+            'Cantarell 50')
     },
 
     get font() {
@@ -102,9 +102,6 @@ const CharacterListWidget = new Lang.Class({
         if (fontDescription.get_size() == 0)
             fontDescription.set_size(CELL_SIZE);
 
-        fontDescription.set_absolute_size(
-            fontDescription.get_size() / 2 * Pango.SCALE);
-
         if (this._fontDescription &&
             fontDescription.equal(this._fontDescription))
             return;


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