use gnc_list_formatter instead of gnc_g_list_stringjoin (..., ", ");

This commit is contained in:
Christopher Lam 2023-10-02 12:28:29 +08:00
parent ab7ead39ca
commit 8a54bf2658
2 changed files with 3 additions and 3 deletions

View File

@ -3230,7 +3230,7 @@ gnc_plugin_page_register_set_filter_tooltip (GncPluginPageRegister* page)
if (show)
{
char *str = gnc_g_list_stringjoin (show, ", ");
char *str = gnc_list_formatter (show);
t_list = g_list_prepend
(t_list, g_strdup_printf ("%s %s", _("Show:"), str));
g_free (str);
@ -3238,7 +3238,7 @@ gnc_plugin_page_register_set_filter_tooltip (GncPluginPageRegister* page)
if (hide)
{
char *str = gnc_g_list_stringjoin (hide, ", ");
char *str = gnc_list_formatter (hide);
t_list = g_list_prepend
(t_list, g_strdup_printf ("%s %s", _("Hide:"), str));
g_free (str);

View File

@ -1876,7 +1876,7 @@ get_peer_acct_names (Split *split)
g_free (name);
}
names = g_list_sort (names, (GCompareFunc)g_utf8_collate);
gchar *retval = gnc_g_list_stringjoin (names, ", ");
auto retval = gnc_list_formatter (names);
g_list_free_full (names, g_free);
g_list_free (accounts_seen);
return retval;