diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-01 11:27:27 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-01 13:37:49 +0200 |
commit | c5268bc5f9df20ae3de45776cee68e66035bd885 (patch) | |
tree | 26982042b2a29feedffcb8fc1c18e22dcb653243 | |
parent | c47e4fa8830e15094d796ae22fdc9343836e3cff (diff) | |
download | weechat-c5268bc5f9df20ae3de45776cee68e66035bd885.zip |
core: send signal "buffer_line_added" on buffers with free content (issue #2066)
The signal "buffer_line_added" is now sent for every line added or modified on
a buffer with free content.
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | ReleaseNotes.adoc | 6 | ||||
-rw-r--r-- | src/gui/gui-line.c | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index be70b0347..98acd2e41 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -15,6 +15,7 @@ For a list of important changes that require manual actions, please look at rele New features:: + * core: send signal "buffer_line_added" on buffers with free content * core: add support of XDG "state" directory (issue #2106, issue #1747) * core: use nick offline color for nick in action message * core: display a specific message when the value of option is unchanged after `/set` command diff --git a/ReleaseNotes.adoc b/ReleaseNotes.adoc index b50b5294b..51cc454a3 100644 --- a/ReleaseNotes.adoc +++ b/ReleaseNotes.adoc @@ -14,6 +14,12 @@ For a complete list of changes, please look at ChangeLog. [[v4.3.0]] == Version 4.3.0 (under dev) +[[v4.3.0_signal_buffer_line_added]] +=== Signal "buffer_line_added" + +The signal "buffer_line_added" is now sent for every line added or modified +on a buffer with free content. + [[v4.3.0_script_keys]] === Script keys diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c index cc15da88e..1ade89191 100644 --- a/src/gui/gui-line.c +++ b/src/gui/gui-line.c @@ -2049,6 +2049,10 @@ gui_line_add_y (struct t_gui_line *line) ptr_line->data->refresh_needed = 1; gui_buffer_ask_chat_refresh (ptr_line->data->buffer, 1); + + (void) gui_buffer_send_signal (ptr_line->data->buffer, + "buffer_line_added", + WEECHAT_HOOK_SIGNAL_POINTER, ptr_line); } /* |