[gnome-clocks] CI: remove pre stage
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] CI: remove pre stage
- Date: Sun, 1 Mar 2020 18:52:18 +0000 (UTC)
commit 5dff0c397d4e07065b588695d594d94dc69e2201
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Sun Mar 1 18:52:02 2020 +0000
CI: remove pre stage
this fixes the ci I hope :(
.gitlab-ci.yml | 1 -
data/org.gnome.clocks.metainfo.xml.in.in | 1 +
src/alarm.vala | 24 ++++++++++++------------
src/utils.vala | 14 +++++++-------
4 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 122a8d5..451b976 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,6 +15,5 @@ flatpak:
lint:
image: "valalang/lint:latest"
- stage: ".pre"
script:
- io.elementary.vala-lint src
diff --git a/data/org.gnome.clocks.metainfo.xml.in.in b/data/org.gnome.clocks.metainfo.xml.in.in
index 3da4d81..4292f10 100644
--- a/data/org.gnome.clocks.metainfo.xml.in.in
+++ b/data/org.gnome.clocks.metainfo.xml.in.in
@@ -51,6 +51,7 @@
<releases>
<release version="3.36.0" date="2020-03-01" type="stable">
<description>
+ <p>A new re-designed release of GNOME Clocks</p>
<ul>
<li>Major redesign of the application</li>
<li>Multiple timers support</li>
diff --git a/src/alarm.vala b/src/alarm.vala
index 5e5cfcc..28836fc 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -370,7 +370,7 @@ public class DayPickerRow : Hdy.ActionRow {
set {
days[Utils.Weekdays.Day.MON] = value;
- update();
+ update ();
}
}
@@ -381,7 +381,7 @@ public class DayPickerRow : Hdy.ActionRow {
set {
days[Utils.Weekdays.Day.TUE] = value;
- update();
+ update ();
}
}
@@ -392,7 +392,7 @@ public class DayPickerRow : Hdy.ActionRow {
set {
days[Utils.Weekdays.Day.WED] = value;
- update();
+ update ();
}
}
@@ -403,7 +403,7 @@ public class DayPickerRow : Hdy.ActionRow {
set {
days[Utils.Weekdays.Day.THU] = value;
- update();
+ update ();
}
}
@@ -414,7 +414,7 @@ public class DayPickerRow : Hdy.ActionRow {
set {
days[Utils.Weekdays.Day.FRI] = value;
- update();
+ update ();
}
}
@@ -425,7 +425,7 @@ public class DayPickerRow : Hdy.ActionRow {
set {
days[Utils.Weekdays.Day.SAT] = value;
- update();
+ update ();
}
}
@@ -436,13 +436,13 @@ public class DayPickerRow : Hdy.ActionRow {
set {
days[Utils.Weekdays.Day.SUN] = value;
- update();
+ update ();
}
}
public signal void days_changed ();
- private Utils.Weekdays days = new Utils.Weekdays();
+ private Utils.Weekdays days = new Utils.Weekdays ();
[GtkChild]
private Gtk.FlowBox flow;
@@ -465,7 +465,7 @@ public class DayPickerRow : Hdy.ActionRow {
for (int i = 0; i < 7; i++) {
var day = (Utils.Weekdays.Day) i;
buttons[i] = new Gtk.ToggleButton.with_label (day.symbol ());
- buttons[i].action_name = "repeats.day-%i".printf(i);
+ buttons[i].action_name = "repeats.day-%i".printf (i);
buttons[i].tooltip_text = day.name ();
buttons[i].get_style_context ().add_class ("circular");
buttons[i].show ();
@@ -549,7 +549,7 @@ private class SetupDialog : Hdy.Dialog {
private List<Item> other_alarms;
static construct {
- typeof(DayPickerRow).ensure();
+ typeof (DayPickerRow).ensure ();
}
public SetupDialog (Gtk.Window parent, Item? alarm, ListModel all_alarms) {
@@ -566,7 +566,7 @@ private class SetupDialog : Hdy.Dialog {
set_default_response (Gtk.ResponseType.OK);
delete_button.visible = alarm != null;
- listbox.set_header_func((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
+ listbox.set_header_func ((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
other_alarms = new List<Item> ();
var n = all_alarms.get_n_items ();
@@ -828,7 +828,7 @@ public class Face : Gtk.Stack, Clocks.Clock {
}
});
- listbox.set_header_func((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
+ listbox.set_header_func ((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
listbox.bind_model (alarms, (item) => {
return new Row ((Item) item, this);
});
diff --git a/src/utils.vala b/src/utils.vala
index 1da4e35..74b912d 100644
--- a/src/utils.vala
+++ b/src/utils.vala
@@ -154,7 +154,7 @@ public class Weekdays {
SAT,
SUN;
- private const string[] symbols = {
+ private const string[] SYMBOLS = {
// Translators: This is used in the repeat toggle for Monday
NC_("Repeat|Monday", "M"),
// Translators: This is used in the repeat toggle for Tuesday
@@ -171,7 +171,7 @@ public class Weekdays {
NC_("Repeat|Sunday", "S")
};
- private const string[] plurals = {
+ private const string[] PLURALS = {
N_("Mondays"),
N_("Tuesdays"),
N_("Wednesdays"),
@@ -182,13 +182,13 @@ public class Weekdays {
};
public string symbol () {
- return _(symbols[this]);
+ return _(SYMBOLS[this]);
}
public string plural () {
- return _(plurals[this]);
+ return _(PLURALS[this]);
}
-
+
public string abbreviation () {
// lazy init because we cannot rely on class init being
// called for us (at least in the current version of vala)
@@ -252,13 +252,13 @@ public class Weekdays {
return (days_equal (NONE));
}
}
-
+
public bool is_weekdays {
get {
return (days_equal (WEEKDAYS));
}
}
-
+
public bool is_weekends {
get {
return (days_equal (WEEKENDS));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]