summary refs log tree commit diff stats
path: root/src/fe-gtk/fe-gtk.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-04-14 11:56:50 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-04-14 11:56:50 +0200
commitea0479998a0d44eb2a02c5ec18a692b17aa53274 (patch)
treeb951022af72d1a6fa0f84d2958075be1702374e7 /src/fe-gtk/fe-gtk.c
parent9272eb43252e8956df6eedd2c96c718b247bca94 (diff)
Use bundled beep file for beep alerts
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r--src/fe-gtk/fe-gtk.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c
index 52d4a906..c9c384cc 100644
--- a/src/fe-gtk/fe-gtk.c
+++ b/src/fe-gtk/fe-gtk.c
@@ -669,8 +669,18 @@ fe_print_text (struct session *sess, char *text, time_t stamp)
 void
 fe_beep (session *sess)
 {
+	char *beepfile;
+
 	if (!prefs.hex_gui_focus_omitalerts || !fe_gui_info (sess, 0) == 1)
-		gdk_beep ();
+	{
+#ifdef WIN32	/* keep this in sync with cfgfiles.c! */
+			beepfile = g_build_filename (HEXCHATSHAREDIR, "share", "beep.wav", NULL);
+#else
+			beepfile = g_build_filename (HEXCHATSHAREDIR, "hexchat", "beep.wav", NULL);
+#endif
+		sound_play (beepfile, FALSE, TRUE);
+		g_free (beepfile);
+	}
 }
 
 void