mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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
@ -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"
|
||||
|
@ -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…
x
Reference in New Issue
Block a user