From 162c171512ee11a7fd1e5acdef45a9070e2c71f8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 06 Nov 2017 14:19:35 -0500 Subject: mq_html_input_hidden(): New function --- diff --git a/src/utils/html.c b/src/utils/html.c index 95d7cdc..4ceeb8b 100644 --- a/src/utils/html.c +++ b/src/utils/html.c @@ -925,6 +925,15 @@ mq_html_input_checkbox(const gchar *name, const gchar *label, gboolean checked) } gchar * +mq_html_input_hidden(const gchar *name, const gchar *value) +{ + return g_strdup_printf( + "\n", + name, name, value ? value : ""); +} + +gchar * mq_html_input_select(const gchar *name, const gchar *label, const gchar *selected, GDestroyNotify destroy_value, GDestroyNotify destroy_label, ...) diff --git a/src/utils/html.h b/src/utils/html.h index 2d33994..724c7cf 100644 --- a/src/utils/html.h +++ b/src/utils/html.h @@ -104,6 +104,9 @@ gchar * mq_html_label(const gchar *for_id, const gchar *label, gboolean add_colon); gchar * +mq_html_input_hidden(const gchar *name, const gchar *value); + +gchar * mq_html_submit(const gchar *name, const gchar *label, gboolean disabled); gchar * -- cgit v0.9.1