diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-19 14:55:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-19 14:55:42 +0000 |
commit | c3cebfd93db339cf2f1baa79da14b5399f8a6ec3 (patch) | |
tree | 62de0b09b649354e7d1023021cc2d1e5cf714ed3 /src | |
parent | 8f98e4b6083e49a10dd2bc2994372449af9f9266 (diff) | |
download | irssi-c3cebfd93db339cf2f1baa79da14b5399f8a6ec3.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-printtext.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c index 71988330..6d339404 100644 --- a/src/fe-text/gui-printtext.c +++ b/src/fe-text/gui-printtext.c @@ -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); } |