diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-26 18:31:55 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-26 18:31:55 (EDT) |
commit | fc1eaf8d1f64967afdc367a01cf7060fa3e25ff3 (patch) | |
tree | e6a547f83e5100d775f762b933f01cdd183823ff | |
parent | 87d058f4e08bcd664669fd37567f7dbcf247693d (diff) | |
download | marquee-fc1eaf8d1f64967afdc367a01cf7060fa3e25ff3.zip marquee-fc1eaf8d1f64967afdc367a01cf7060fa3e25ff3.tar.gz marquee-fc1eaf8d1f64967afdc367a01cf7060fa3e25ff3.tar.bz2 |
mq_html_th(): New function
-rw-r--r-- | src/html.c | 12 | ||||
-rw-r--r-- | src/html.h | 3 |
2 files changed, 15 insertions, 0 deletions
@@ -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( @@ -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 * |