diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-05 00:41:04 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-05 00:41:04 (EDT) |
commit | a3d10a4c448cd2f62dec97427520516c7605b0d0 (patch) | |
tree | e48bb0e20e987b17da979b3f9b4a660d0b0e0a89 /src | |
parent | 1d24356e2d1e4ac241873b31ea9d251badf1d58c (diff) | |
download | marquee-a3d10a4c448cd2f62dec97427520516c7605b0d0.zip marquee-a3d10a4c448cd2f62dec97427520516c7605b0d0.tar.gz marquee-a3d10a4c448cd2f62dec97427520516c7605b0d0.tar.bz2 |
mq_html_input_number_d(): New function
Diffstat (limited to 'src')
-rw-r--r-- | src/html.c | 11 | ||||
-rw-r--r-- | src/html.h | 4 |
2 files changed, 15 insertions, 0 deletions
@@ -556,6 +556,17 @@ mq_html_input_number_i(const gchar *name, const gchar *label, } gchar * +mq_html_input_number_d(const gchar *name, const gchar *label, + gdouble min, gdouble step, gdouble max, gdouble value) +{ + return g_strdup_printf("<label for=\"%s\"><span>%s</span>" + "<input type=\"number\" name=\"%s\" id=\"%s\"" + " min=\"%f\" step=\"%f\" max=\"%f\" value=\"%f\">" + "</label>\n", + name, label, name, name, min, step, max, value); +} + +gchar * mq_html_input_radio(const gchar *name, const gchar *label, gboolean checked) { return g_strdup_printf("<label for=\"%s\"><span>%s</span>" @@ -62,6 +62,10 @@ mq_html_input_number_i(const gchar *name, const gchar *label, gint min, gint step, gint max, gint value); gchar * +mq_html_input_number_d(const gchar *name, const gchar *label, + gdouble min, gdouble step, gdouble max, gdouble value); + +gchar * mq_html_input_radio(const gchar *name, const gchar *label, gboolean checked); gchar * |