[gnome-clocks/zbrown/world-clocks] lint: fix errors
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/zbrown/world-clocks] lint: fix errors
- Date: Wed, 5 Feb 2020 17:44:34 +0000 (UTC)
commit 6e826df64466a7e2f74c2e1fcb021f4e1797cbd1
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 dabbeff..3e1c095 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;
@@ -574,3 +574,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]