[gnome-clocks] Fix new vala compiler warnings



commit 568bbba35c03ddbb600d3ca186930e619b82150c
Author: Paolo Borelli <pborelli gnome org>
Date:   Thu Aug 18 00:18:57 2016 +0200

    Fix new vala compiler warnings

 src/alarm.vala |    4 ++--
 src/clock.vala |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/alarm.vala b/src/alarm.vala
index fe792b5..3c26bdc 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -20,8 +20,8 @@ namespace Clocks {
 namespace Alarm {
 
 private class Item : Object, ContentItem {
-    static const int SNOOZE_MINUTES = 9;
-    static const int RING_MINUTES = 3;
+    const int SNOOZE_MINUTES = 9;
+    const int RING_MINUTES = 3;
 
     // FIXME: should we add a "MISSED" state where the alarm stopped
     // ringing but we keep showing the ringing panel?
diff --git a/src/clock.vala b/src/clock.vala
index 32bb696..73335ca 100644
--- a/src/clock.vala
+++ b/src/clock.vala
@@ -25,7 +25,7 @@ public enum PanelId {
     TIMER,
 }
 
-public static const int N_PANELS = 4;
+public const int N_PANELS = 4;
 
 public interface Clock : GLib.Object {
     public abstract string label { get; protected construct set; }


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