summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-07-20 11:53:08 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-07-20 12:14:40 +0200
commit62e68f965f7bce87eb0bf61bb134de5a3d3b7507 (patch)
tree817a07d1cd0d80e28c9c9c286c39d3abf9e751e4 /src/gui
parent0440309cee9c738b76e5ba8eaa4b59ebd9d8951b (diff)
downloadweechat-62e68f965f7bce87eb0bf61bb134de5a3d3b7507.zip
api: rename function string_build_with_split_string to string_rebuild_split_string
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-buffer.c8
-rw-r--r--src/gui/gui-filter.c4
-rw-r--r--src/gui/gui-focus.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index c8efb3ea9..cb9c46562 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -4702,8 +4702,8 @@ gui_buffer_dump_hexa (struct t_gui_buffer *buffer)
free (prefix_without_colors);
if (message_without_colors)
free (message_without_colors);
- tags = string_build_with_split_string ((const char **)ptr_line->data->tags_array,
- ",");
+ tags = string_rebuild_split_string ((const char **)ptr_line->data->tags_array,
+ ",");
log_printf (" tags: '%s', displayed: %d, highlight: %d",
(tags) ? tags : "(none)",
ptr_line->data->displayed,
@@ -4920,8 +4920,8 @@ gui_buffer_print_log ()
while (ptr_line)
{
num--;
- tags = string_build_with_split_string ((const char **)ptr_line->data->tags_array,
- ",");
+ tags = string_rebuild_split_string ((const char **)ptr_line->data->tags_array,
+ ",");
log_printf (" line N-%05d: y:%d, str_time:'%s', tags:'%s', "
"displayed:%d, highlight:%d, refresh_needed:%d, "
"prefix:'%s'",
diff --git a/src/gui/gui-filter.c b/src/gui/gui-filter.c
index d522eadca..e5d877706 100644
--- a/src/gui/gui-filter.c
+++ b/src/gui/gui-filter.c
@@ -592,8 +592,8 @@ gui_filter_add_to_infolist (struct t_infolist *infolist,
for (i = 0; i < filter->tags_count; i++)
{
snprintf (option_name, sizeof (option_name), "tag_%05d", i + 1);
- tags = string_build_with_split_string ((const char **)filter->tags_array[i],
- "+");
+ tags = string_rebuild_split_string ((const char **)filter->tags_array[i],
+ "+");
if (tags)
{
if (!infolist_new_var_string (ptr_item, option_name, tags))
diff --git a/src/gui/gui-focus.c b/src/gui/gui-focus.c
index 50d5cf13b..a57b5a7a9 100644
--- a/src/gui/gui-focus.c
+++ b/src/gui/gui-focus.c
@@ -201,7 +201,7 @@ gui_focus_to_hashtable (struct t_gui_focus_info *focus_info, const char *key)
{
str_time = gui_color_decode (((focus_info->chat_line)->data)->str_time, NULL);
str_prefix = gui_color_decode (((focus_info->chat_line)->data)->prefix, NULL);
- str_tags = string_build_with_split_string ((const char **)((focus_info->chat_line)->data)->tags_array, ",");
+ str_tags = string_rebuild_split_string ((const char **)((focus_info->chat_line)->data)->tags_array, ",");
str_message = gui_color_decode (((focus_info->chat_line)->data)->message, NULL);
nick = gui_line_get_nick_tag (focus_info->chat_line);
HASHTABLE_SET_POINTER("_chat_line", focus_info->chat_line);