[gnome-clocks/zbrown/world-clocks: 2/4] lint: fix errors



commit 7495b3a0996b36bc01380455f771057a1ae172f6
Author: Zander Brown <zbrown gnome org>
Date:   Wed Feb 5 17:44:07 2020 +0000

    lint: fix errors

 src/widgets.vala | 5 +++--
 src/world.vala   | 6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/widgets.vala b/src/widgets.vala
index 50f243b..3d1f3b0 100644
--- a/src/widgets.vala
+++ b/src/widgets.vala
@@ -131,12 +131,12 @@ public class ContentStore : GLib.Object, GLib.ListModel {
         for (int i = 0; i < n; i++) {
             var o = store.get_object (i);
             if (o == item) {
-                store.remove(i);
+                store.remove (i);
 
                 if (sort_func != null) {
                     store.sort (sort_func);
                 }
-    
+
                 selection_changed ();
 
                 return;
@@ -573,3 +573,4 @@ public class AnalogFrame : Gtk.Bin {
 }
 
 } // namespace Clocks
+
diff --git a/src/world.vala b/src/world.vala
index 9465c16..e5f460b 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -295,7 +295,7 @@ private class Tile : Gtk.ListBoxRow {
         }
 
         // Translators: The time is the same as the local time
-        var message = _("Equal");
+        var message = _("Current timezone");
 
         if (diff > 0) {
             // Translators: The (possibly fractical) number hours in the past
@@ -312,14 +312,14 @@ private class Tile : Gtk.ListBoxRow {
         }
 
         if (location.day_label != null && location.day_label != "") {
-            desc.label = "%s • %s".printf(location.day_label, message);
+            desc.label = "%s • %s".printf (location.day_label, message);
             delete_stack.visible_child = delete_button;
         } else if (location.automatic) {
             // Translators: This clock represents the local time
             desc.label = _("Current location");
             delete_stack.visible_child = delete_empty;
         } else {
-            desc.label = "%s".printf(message);
+            desc.label = "%s".printf (message);
             delete_stack.visible_child = delete_button;
         }
 


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