summaryrefslogtreecommitdiffstats
path: root/src/about
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-26 22:13:55 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-26 22:13:55 (EDT)
commitef930b647da141e3c6f46a2f84b6845bf2a72395 (patch)
tree8de5166adb394e952afd036062784e92148a1413 /src/about
parente853a01d772a17dbcdf61a070aaf97c629fd5be7 (diff)
downloadmarquee-ef930b647da141e3c6f46a2f84b6845bf2a72395.zip
marquee-ef930b647da141e3c6f46a2f84b6845bf2a72395.tar.gz
marquee-ef930b647da141e3c6f46a2f84b6845bf2a72395.tar.bz2
about(:version): Use mq_html_*() instead of g_strdup_printf()
Diffstat (limited to 'src/about')
-rw-r--r--src/about/version.c20
1 files changed, 9 insertions, 11 deletions
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 &lt;pj@pehjota.net&gt;",
- 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("<h3 style=\"text-align: center;\">%s"
- "</h3><p style=\"text-align: center;\">%s</p>"
- "<p style=\"text-align: center;\">"
- "&copy; 2017 Patrick McDermott</p>",
- 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,
+ "&copy; 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 "
+ "&lt;pj@pehjota.net&gt;"),
NULL),
"Credits",
g_strdup(mq_gpl_3_0_html()),