use libcanberra for beeps

This commit is contained in:
TingPing
2013-04-27 18:05:05 -04:00
parent 7323f7c561
commit 78e39bfb1c
2 changed files with 33 additions and 0 deletions

View File

@@ -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
}