go-for-it: fix for vala 0.56

This commit is contained in:
Michal Vasilek 2022-04-02 18:50:33 +02:00 committed by Echo
parent 1a697e1c05
commit 84edfa89c9

View file

@ -0,0 +1,30 @@
From 4be5ff4ff5ef7db9ab320945cd78a2b2e853695c Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sat, 2 Apr 2022 18:53:20 +0200
Subject: [PATCH] Fix build with vala 0.56
~/Go-For-It-1.9.6/src/Services/TaskTimer.vala:35.42-35.50: error: value is less accessible than constant `GOFI.TaskTimer.UPDATE_INTERVAL'
35 | public const int64 UPDATE_INTERVAL = 60 * US_C;
| ^~~~~~~~~
Closes #172
---
src/Services/TaskTimer.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Services/TaskTimer.vala b/src/Services/TaskTimer.vala
index 8f14f25..2231dc9 100644
--- a/src/Services/TaskTimer.vala
+++ b/src/Services/TaskTimer.vala
@@ -32,7 +32,7 @@ public class GOFI.TaskTimer {
private const int64 US_C = 1000000; // μs<->s conversion
- public const int64 UPDATE_INTERVAL = 60 * US_C;
+ private const int64 UPDATE_INTERVAL = 60 * US_C;
/**
* A proxy attribute, that does not store any data itself, but provides
--
2.35.1