summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-27 22:41:27 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-27 22:41:27 (EDT)
commite71b83ed7ddbc348a1687478786523751705c6a0 (patch)
tree02cab0ebfc0e0df21c2587b71878efc607da9b48 /src
parentc7bd9ebe7a48c8033374d8622447d29be8af49f5 (diff)
downloadmarquee-e71b83ed7ddbc348a1687478786523751705c6a0.zip
marquee-e71b83ed7ddbc348a1687478786523751705c6a0.tar.gz
marquee-e71b83ed7ddbc348a1687478786523751705c6a0.tar.bz2
mq_html_input_iframe(): New function
Diffstat (limited to 'src')
-rw-r--r--src/html.c6
-rw-r--r--src/html.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/html.c b/src/html.c
index 6781a7f..917e04a 100644
--- a/src/html.c
+++ b/src/html.c
@@ -690,3 +690,9 @@ mq_html_input_select(const gchar *name, const gchar *label,
return select;
}
+
+gchar *
+mq_html_input_iframe(const gchar *src)
+{
+ return g_strdup_printf("<iframe src=\"%s\"></iframe>", src);
+}
diff --git a/src/html.h b/src/html.h
index 6184683..92fe2ea 100644
--- a/src/html.h
+++ b/src/html.h
@@ -82,4 +82,7 @@ mq_html_input_select(const gchar *name, const gchar *label,
GDestroyNotify destroy_value, GDestroyNotify destroy_label, ...)
G_GNUC_NULL_TERMINATED;
+gchar *
+mq_html_input_iframe(const gchar *src);
+
#endif