Mercurial > sci
diff scid/theme.c @ 40:752bb1cd2dd8
themes: improve status page
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 07 Aug 2022 08:43:32 +0200 |
parents | 1d0ddf9e6efd |
children | 00b9af607524 |
line wrap: on
line diff
--- a/scid/theme.c Sun Aug 07 08:42:04 2022 +0200 +++ b/scid/theme.c Sun Aug 07 08:43:32 2022 +0200 @@ -360,12 +360,12 @@ } char * -theme_page_status(enum khttp status) +theme_page_status(int status, const char *message) { json_t *doc; char *ret; - doc = util_json_pack("{si}", "status", status); + doc = util_json_pack("{si ss}", "status", status, "message", message); ret = call(doc, "onPageStatus"); json_decref(doc);