mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
Instead of directly calling beep(), send "beep" signal which default
behaviour is to call beep() git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1262 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8f98e4b608
commit
c3cebfd93d
2 changed files with 9 additions and 1 deletions
|
|
@ -368,7 +368,7 @@ static void line_add_colors(GUI_WINDOW_REC *gui, int fg, int bg, int flags)
|
|||
buffer[pos++] = LINE_CMD_INDENT;
|
||||
}
|
||||
if (flags & PRINTFLAG_BEEP)
|
||||
beep();
|
||||
signal_emit("beep", 0);
|
||||
|
||||
linebuf_add(gui, (char *) buffer, pos);
|
||||
|
||||
|
|
@ -606,6 +606,7 @@ void gui_printtext_init(void)
|
|||
signal_add("print text finished", (SIGNAL_FUNC) sig_printtext_finished);
|
||||
signal_add("print format", (SIGNAL_FUNC) sig_print_format);
|
||||
signal_add("setup changed", (SIGNAL_FUNC) read_settings);
|
||||
signal_add("beep", (SIGNAL_FUNC) beep);
|
||||
command_bind("clear", NULL, (SIGNAL_FUNC) cmd_clear);
|
||||
command_set_options("clear", "all");
|
||||
|
||||
|
|
@ -620,5 +621,6 @@ void gui_printtext_deinit(void)
|
|||
signal_remove("print text finished", (SIGNAL_FUNC) sig_printtext_finished);
|
||||
signal_remove("print format", (SIGNAL_FUNC) sig_print_format);
|
||||
signal_remove("setup changed", (SIGNAL_FUNC) read_settings);
|
||||
signal_remove("beep", (SIGNAL_FUNC) beep);
|
||||
command_unbind("clear", (SIGNAL_FUNC) cmd_clear);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue