diff options
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index 603025d1..e11eeaf6 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -660,15 +660,10 @@ fe_print_text (struct session *sess, char *text, time_t stamp) void fe_beep (session *sess) { - char *beepfile; - -#ifdef WIN32 /* keep this in sync with cfgfiles.c! */ - beepfile = g_build_filename (HEXCHATSHAREDIR, "share", "sounds", "beep.wav", NULL); -#else - beepfile = g_build_filename (HEXCHATSHAREDIR, "sounds", "freedesktop", "stereo", "hexchat_beep.wav", NULL); -#endif - sound_play (beepfile, TRUE, TRUE); - g_free (beepfile); + if (!prefs.hex_gui_focus_omitalerts || !fe_gui_info (sess, 0) == 1) + { + gdk_beep (); + } } void |