Allow utf8 in occupants char

This commit is contained in:
Michael Vetter
2021-10-22 16:47:15 +02:00
parent fa2881fcea
commit 1c96115f97
6 changed files with 25 additions and 29 deletions

View File

@@ -77,9 +77,10 @@ _occuptantswin_occupant(ProfLayoutSplit* layout, GList* item, gboolean showjid,
GString* msg = g_string_new(spaces->str);
char ch = prefs_get_occupants_char();
char* ch = prefs_get_occupants_char();
if (ch) {
g_string_append_printf(msg, "%c", ch);
g_string_append_printf(msg, "%s", ch);
free(ch);
}
gboolean wrap = prefs_get_boolean(PREF_OCCUPANTS_WRAP);