1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04: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:
Timo Sirainen 2001-02-19 14:55:42 +00:00 committed by cras
parent 8f98e4b608
commit c3cebfd93d
2 changed files with 9 additions and 1 deletions

View File

@ -282,3 +282,9 @@ windows.c:
"window refnum changed", WINDOW_REC, int old
"window name changed", WINDOW_REC
"window level changed", WINDOW_REC
Text FE
-------
gui-printtext.c:
"beep"

View File

@ -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);
}