mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-10-26 05:55:38 +00:00
use libcanberra for beeps
This commit is contained in:
1 parent
7323f7c561
commit
78e39bfb1c
2 files changed
+33
No files matched your search
@@ -56,6 +56,10 @@
|
||||
#include <gdk/gdkx.h>
|
||||
#endif
|
||||
|
||||
#ifdef USE_LIBCANBERRA
|
||||
#include <canberra-gtk.h>
|
||||
#endif
|
||||
|
||||
GdkPixmap *channelwin_pix;
|
||||
|
||||
|
||||
@@ -671,6 +675,12 @@ fe_beep (session *sess)
|
||||
Beep (1000, 50);
|
||||
}
|
||||
#else
|
||||
#ifdef USE_LIBCANBERRA
|
||||
if (ca_context_play (ca_gtk_context_get (), 0,
|
||||
CA_PROP_APPLICATION_NAME, DISPLAY_NAME,
|
||||
CA_PROP_EVENT_ID, "message-new-instant", NULL) == 0)
|
||||
return;
|
||||
#endif
|
||||
gdk_beep ();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user