[gnome-clocks/bilelmoussaoui/ci-stages] linter: fix leftovers from alarm panel mr



commit 1c18d3ed52585fc93684b033058631a37fc1863d
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Sun Mar 1 19:41:00 2020 +0100

    linter: fix leftovers from alarm panel mr

 src/alarm.vala | 24 ++++++++++++------------
 src/utils.vala | 14 +++++++-------
 2 files changed, 19 insertions(+), 19 deletions(-)
---
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]