Merge pull request #336 from TingPing/beep
Don't beep when window is active.
This commit is contained in:
commit
2e9bf00e0a
|
@ -97,7 +97,7 @@ void fe_set_title (struct session *sess);
|
||||||
void fe_set_nonchannel (struct session *sess, int state);
|
void fe_set_nonchannel (struct session *sess, int state);
|
||||||
void fe_set_nick (struct server *serv, char *newnick);
|
void fe_set_nick (struct server *serv, char *newnick);
|
||||||
void fe_ignore_update (int level);
|
void fe_ignore_update (int level);
|
||||||
void fe_beep (void);
|
void fe_beep (session *sess);
|
||||||
void fe_lastlog (session *sess, session *lastlog_sess, char *sstr, gtk_xtext_search_flags flags);
|
void fe_lastlog (session *sess, session *lastlog_sess, char *sstr, gtk_xtext_search_flags flags);
|
||||||
void fe_set_lag (server *serv, int lag);
|
void fe_set_lag (server *serv, int lag);
|
||||||
void fe_set_throttle (server *serv);
|
void fe_set_throttle (server *serv);
|
||||||
|
|
|
@ -2253,7 +2253,7 @@ sound_beep (session *sess)
|
||||||
sound_play_event (XP_TE_BEEP);
|
sound_play_event (XP_TE_BEEP);
|
||||||
else
|
else
|
||||||
/* system beep */
|
/* system beep */
|
||||||
fe_beep ();
|
fe_beep (sess);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
|
|
|
@ -682,9 +682,10 @@ fe_print_text (struct session *sess, char *text, time_t stamp)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
fe_beep (void)
|
fe_beep (session *sess)
|
||||||
{
|
{
|
||||||
gdk_beep ();
|
if (fe_gui_info (sess, 0) != 1)
|
||||||
|
gdk_beep ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue