diff options
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 12 |
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 |