summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/fe-gtk.c12
-rw-r--r--src/fe-gtk/setup.c2
2 files changed, 12 insertions, 2 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
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index e8cca3a7..261d29d9 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -1654,7 +1654,7 @@ setup_snd_browse_cb (GtkWidget *button, GtkEntry *entry)
 static void
 setup_snd_play_cb (GtkWidget *button, GtkEntry *entry)
 {
-	sound_play (entry->text, FALSE);
+	sound_play (entry->text, FALSE, FALSE);
 }
 
 static void