main: include toplevel-icon support in --version output

This commit is contained in:
Daniel Eklöf 2024-09-13 08:45:54 +02:00
parent f5caa2d265
commit c6208a98c8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 24 additions and 8 deletions

3
main.c
View file

@ -51,11 +51,12 @@ version_and_features(void)
{
static char buf[256];
snprintf(buf, sizeof(buf),
"version: %s %cpgo %cime %cgraphemes %cassertions",
"version: %s %cpgo %cime %cgraphemes %ctoplevel-icon %cassertions",
FOOT_VERSION,
feature_pgo() ? '+' : '-',
feature_ime() ? '+' : '-',
feature_graphemes() ? '+' : '-',
feature_xdg_toplevel_icon() ? '+' : '-',
feature_assertions() ? '+' : '-');
return buf;
}