summaryrefslogtreecommitdiffstats
path: root/src/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c12
1 files changed, 12 insertions, 0 deletions
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("<tr>\n<th colspan=\"2\">", text, "</th>\n</tr>\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(