diff options
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/fe-gtk.c | 13 | ||||
-rw-r--r-- | src/fe-gtk/setup.c | 2 |
2 files changed, 5 insertions, 10 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 diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index 02e8605d..fd239c9d 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -1660,7 +1660,7 @@ setup_snd_browse_cb (GtkWidget *button, GtkEntry *entry) static void setup_snd_play_cb (GtkWidget *button, GtkEntry *entry) { - sound_play (entry->text, FALSE, FALSE); + sound_play (entry->text, FALSE); } static void |