From ef930b647da141e3c6f46a2f84b6845bf2a72395 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 26 Oct 2017 22:13:55 -0400 Subject: about(:version): Use mq_html_*() instead of g_strdup_printf() --- (limited to 'src/about/version.c') diff --git a/src/about/version.c b/src/about/version.c index 90be0aa..ff1a375 100644 --- a/src/about/version.c +++ b/src/about/version.c @@ -34,11 +34,6 @@ extern const char *PACKAGE_VERSION_GIT; -static gchar *authors[] = { - "Patrick McDermott <pj@pehjota.net>", - NULL -}; - void mq_about_version_response(MqApplication G_GNUC_UNUSED *application, GHashTable G_GNUC_UNUSED *query, @@ -50,15 +45,18 @@ mq_about_version_response(MqApplication G_GNUC_UNUSED *application, title = g_strdup_printf("About %s", PACKAGE_NAME); document = mq_html_document(title, mq_html_notebook(FALSE, "notebook1", 0, - g_strdup_printf("

%s" - "

%s

" - "

" - "© 2017 Patrick McDermott

", - PACKAGE_NAME, PACKAGE_VERSION_GIT), + mq_html_container("div", + mq_html_h3(NULL, PACKAGE_NAME), + mq_html_p(NULL, PACKAGE_VERSION_GIT), + mq_html_p(NULL, + "© 2017 Patrick McDermott"), + NULL), "About", mq_html_container("div", mq_html_h3(NULL, "Authors"), - mq_html_list_v(NULL, authors), + mq_html_p(NULL, + "Patrick McDermott " + "<pj@pehjota.net>"), NULL), "Credits", g_strdup(mq_gpl_3_0_html()), -- cgit v0.9.1