From dd54e26b4f32cd9f1a2a8f76b94a70ad122fe3db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 19 Mar 2023 18:45:18 +0100 Subject: [PATCH] core: add function `bar_new` in release notes --- ReleaseNotes.adoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ReleaseNotes.adoc b/ReleaseNotes.adoc index a6c2dec5c..ba9d8d29b 100644 --- a/ReleaseNotes.adoc +++ b/ReleaseNotes.adoc @@ -173,6 +173,17 @@ The default aliases can be converted to lower case with the following commands: The autotools support for build of WeeChat has been removed. + WeeChat must now be built with CMake. +[[v4.0.0_bar_new]] +=== Function bar_new + +When the bar name already exists, the API function +link:https://weechat.org/doc/plugin/#_bar_new[bar_new] returns the pointer to +the bar (instead of NULL) and sets the default value for all options with the +values received. + +If you don't want to set default values in an existing bar, it is recommended +to first check if the bar exists with the API function +link:https://weechat.org/doc/plugin/#_bar_search[bar_search]. + [[v3.8]] == Version 3.8 (2023-01-08)