public DateTime lastAdd;
- private Canberra.Context sound_context;
+
public GitMonitor () {
this.queue = new Array<GitMonitorQueue>();
GitMonitor.gitmonitor = this;
- Canberra.Context.create(out sound_context);
+
Timeout.add_full(Priority.LOW, 1000, () => {
notification.set_timeout(60); // show errros for longer
notification.show();
- sound_context.play(0, Canberra.PROP_EVENT_ID, "message-pause-error", Canberra.PROP_EVENT_DESCRIPTION, "Problem with gitlive");
+ Canberra.Context context;
+ Canberra.Proplist props;
+
+ Canberra.Context.create (out context);
+ Canberra.Proplist.create (out props);
+
+ props.sets (Canberra.PROP_EVENT_ID, "camera-shutter");
+ props.sets (Canberra.PROP_EVENT_DESCRIPTION, _("Photo taken"));
+ props.sets (Canberra.PROP_CANBERRA_CACHE_CONTROL, "permanent");
+ props.sets (Canberra.PROP_MEDIA_ROLE, "event");
+
+ context.play_full (0, props, null);
+