mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
use libcanberra for beeps
This commit is contained in:
@@ -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