[gnome-clocks/bilelmoussaoui/timer-fixes] stopwatch: use ratio char instead of a column



commit 64371bd4eea19550eda72245996b7f78243d991d
Author: Tobias Bernard <tbernard gnome org>
Date:   Sat Feb 1 18:16:45 2020 +0100

    stopwatch: use ratio char instead of a column

 data/ui/stopwatch.ui | 4 ++--
 src/stopwatch.vala   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/stopwatch.ui b/data/ui/stopwatch.ui
index e5e6ad0..38a1eaf 100644
--- a/data/ui/stopwatch.ui
+++ b/data/ui/stopwatch.ui
@@ -48,7 +48,7 @@
                   <object class="GtkLabel">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="label">:</property>
+                    <property name="label">∶</property>
                   </object>
                   <packing>
                     <property name="expand">False</property>
@@ -80,7 +80,7 @@
                   <object class="GtkLabel">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="label">:</property>
+                    <property name="label">∶</property>
                     <property name="xalign">0</property>
                     <property name="yalign">0</property>
                   </object>
diff --git a/src/stopwatch.vala b/src/stopwatch.vala
index b6b676a..86787f1 100644
--- a/src/stopwatch.vala
+++ b/src/stopwatch.vala
@@ -27,7 +27,7 @@ private string render_duration (double duration) {
     double r;
     Utils.time_to_hms (Math.floor (duration * 100) / 100, out h, out m, out s, out r);
     int cs = (int) (r * 10);
-    return "%02i\u200E∶%02i\u200E∶%02i.%i".printf (h.abs (), m.abs (), s.abs (), cs.abs ());
+    return "%02i\u200E ∶ %02i\u200E ∶ %02i. %i".printf (h.abs (), m.abs (), s.abs (), cs.abs ());
 }
 
 public class Lap : GLib.Object {
@@ -91,7 +91,7 @@ private class LapsRow : Gtk.ListBoxRow {
                 sign = "-";
             }
 
-            return "%s%s".printf (sign, delta_label);
+            return "%s %s".printf (sign, delta_label);
         }
         return null;
     }


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