blob: ba2514344045b97d8004779d17617eb8656b8d39 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
namespace Dino.Plugins.NotificationSound {
public class Plugin : RootInterface, Object {
public Dino.Application app;
private Canberra.Context sound_context;
public void registered(Dino.Application app) {
this.app = app;
Canberra.Context.create(out sound_context);
app.stream_interactor.get_module(NotificationEvents.IDENTITY).notify_message.connect((message, conversation) => {
sound_context.play(0, Canberra.PROP_EVENT_ID, "message-new-instant", Canberra.PROP_EVENT_DESCRIPTION, "New Dino message");
});
}
public void shutdown() { }
}
}
|