From 933332c27c752eaa7b4a061773c8a9605341abd7 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 04 Nov 2017 13:51:18 -0400 Subject: mq_html_label(): New function --- diff --git a/src/utils/html.c b/src/utils/html.c index b8abbac..e3c6841 100644 --- a/src/utils/html.c +++ b/src/utils/html.c @@ -835,6 +835,14 @@ mq_html_input_select(const gchar *name, const gchar *label, } gchar * +mq_html_label(const gchar *for_id, const gchar *label, gboolean add_colon) +{ + return g_strdup_printf( + "\n", + for_id, label, add_colon ? ":" : ""); +} + +gchar * mq_html_input_iframe(const gchar *src) { return g_strdup_printf("", src); diff --git a/src/utils/html.h b/src/utils/html.h index 98b49b2..63d20f9 100644 --- a/src/utils/html.h +++ b/src/utils/html.h @@ -91,6 +91,9 @@ mq_html_input_select(const gchar *name, const gchar *label, G_GNUC_NULL_TERMINATED; gchar * +mq_html_label(const gchar *for_id, const gchar *label, gboolean add_colon); + +gchar * mq_html_input_iframe(const gchar *src); G_END_DECLS -- cgit v0.9.1