Remove extra omitalerts check

This commit is contained in:
TingPing 2013-04-27 19:16:34 -03:00
parent 78e39bfb1c
commit e714c7d53f
1 changed files with 12 additions and 15 deletions

View File

@ -664,26 +664,23 @@ fe_print_text (struct session *sess, char *text, time_t stamp)
void void
fe_beep (session *sess) fe_beep (session *sess)
{ {
if (!prefs.hex_gui_focus_omitalerts || !fe_gui_info (sess, 0) == 1)
{
#ifdef WIN32 #ifdef WIN32
if (!PlaySound ("Notification.IM", NULL, SND_ALIAS|SND_ASYNC)) if (!PlaySound ("Notification.IM", NULL, SND_ALIAS|SND_ASYNC))
{ {
/* This is really just a fallback attempt, may or may not work on new Windows releases, especially on x64. /* This is really just a fallback attempt, may or may not work on new Windows releases, especially on x64.
* You should set up the "Instant Message Notification" system sound instead, supported on Vista and up. * You should set up the "Instant Message Notification" system sound instead, supported on Vista and up.
*/ */
Beep (1000, 50); Beep (1000, 50);
} }
#else #else
#ifdef USE_LIBCANBERRA #ifdef USE_LIBCANBERRA
if (ca_context_play (ca_gtk_context_get (), 0, if (ca_context_play (ca_gtk_context_get (), 0,
CA_PROP_APPLICATION_NAME, DISPLAY_NAME, CA_PROP_APPLICATION_NAME, DISPLAY_NAME,
CA_PROP_EVENT_ID, "message-new-instant", NULL) == 0) CA_PROP_EVENT_ID, "message-new-instant", NULL) == 0)
return; return;
#endif #endif
gdk_beep (); gdk_beep ();
#endif #endif
}
} }
void void