summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/html.c8
-rw-r--r--src/utils/html.h3
2 files changed, 11 insertions, 0 deletions
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(
+ "<label for=\"%s\">\n<span>%s%s</span>\n</label>\n",
+ for_id, label, add_colon ? ":" : "");
+}
+
+gchar *
mq_html_input_iframe(const gchar *src)
{
return g_strdup_printf("<iframe src=\"%s\"></iframe>", 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