From fc1eaf8d1f64967afdc367a01cf7060fa3e25ff3 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 26 Oct 2017 18:31:55 -0400 Subject: mq_html_th(): New function --- diff --git a/src/html.c b/src/html.c index f6f3223..147cdf9 100644 --- a/src/html.c +++ b/src/html.c @@ -576,6 +576,18 @@ mq_html_fieldset(gchar *first_child, ...) } gchar * +mq_html_th(GDestroyNotify destroy, gchar *text) +{ + gchar *e; + e = g_strconcat("\n", text, "\n\n", + NULL); + if (destroy) { + destroy(text); + } + return e; +} + +gchar * mq_html_input_text(const gchar *name, const gchar *label, const gchar *value) { return g_strdup_printf( diff --git a/src/html.h b/src/html.h index becbba9..f35b49b 100644 --- a/src/html.h +++ b/src/html.h @@ -61,6 +61,9 @@ gchar * mq_html_fieldset(gchar *first_child, ...); gchar * +mq_html_th(GDestroyNotify destroy, gchar *text); + +gchar * mq_html_input_text(const gchar *name, const gchar *label, const gchar *value); gchar * -- cgit v0.9.1