[gnome-maps] mapLocation: Use markup for superscripts



commit 924750891f7c40b7de2d398bfc8c7d65e18215d3
Author: Khaled Hosny <khaledhosny eglug org>
Date:   Tue Mar 4 00:31:49 2014 +0200

    mapLocation: Use markup for superscripts
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708404

 src/mapLocation.js  |    2 +-
 src/userLocation.js |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/mapLocation.js b/src/mapLocation.js
index 1be5a5f..508e93c 100644
--- a/src/mapLocation.js
+++ b/src/mapLocation.js
@@ -174,7 +174,7 @@ const MapLocation = new Lang.Class({
             else
                 area = Math.floor(area * 10) / 10;
 
-            return area.toString() + _(" kmĀ²");
+            return area.toString() + _(" km<sup>2</sup>");
         }
     },
 
diff --git a/src/userLocation.js b/src/userLocation.js
index 3eddee2..d383479 100644
--- a/src/userLocation.js
+++ b/src/userLocation.js
@@ -62,6 +62,7 @@ const UserLocation = new Lang.Class({
         let text = _("%s\nPosition Accuracy: %s")
                 .format (this.description, this.getAccuracyDescription());
         let textActor = new Clutter.Text({ text: text });
+        textActor.set_use_markup(true);
         textActor.set_margin_left(6);
         textActor.set_margin_right(6);
         textActor.set_color(new Clutter.Color({ red: 255,


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