Get rid of bundled beep

This commit is contained in:
Berke Viktor
2013-04-27 23:00:18 +02:00
parent 8e3db00dac
commit 6001ceff9f
15 changed files with 20 additions and 58 deletions

View File

@@ -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

View File

@@ -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