summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-04 13:51:18 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-04 13:51:18 (EDT)
commit933332c27c752eaa7b4a061773c8a9605341abd7 (patch)
tree79d5684f5bfb29a25aea3321618ae3f79e62d076
parent3ff77f34e416392dd930a3655d59ff08f25e1129 (diff)
downloadmarquee-933332c27c752eaa7b4a061773c8a9605341abd7.zip
marquee-933332c27c752eaa7b4a061773c8a9605341abd7.tar.gz
marquee-933332c27c752eaa7b4a061773c8a9605341abd7.tar.bz2
mq_html_label(): New function
-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