From 75ca095fffd7e1e47f8ed6e376925114a02dc739 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 4 Jul 2018 14:39:56 +0800 Subject: [PATCH] GitMonitor.vala --- GitMonitor.vala | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/GitMonitor.vala b/GitMonitor.vala index f95ee7ae..384ad84b 100644 --- a/GitMonitor.vala +++ b/GitMonitor.vala @@ -178,10 +178,18 @@ public class GitMonitor : Monitor public DateTime lastAdd; + private Canberra.Context sound_context; + public GitMonitor () { + + + this.queue = new Array(); GitMonitor.gitmonitor = this; + Canberra.Context.create(out sound_context); + + Timeout.add_full(Priority.LOW, 1000, () => { //print("TIMEOUT queue length = %d, is_runing = %s\n", (int)this.queue.length , this.queueRunning ? "Y" : "N"); -- 2.39.2