diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-06 14:33:00 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-06 14:33:00 (EST) |
commit | dbeecfd6c3e15ca50f06979fea6ae3fac84bd0a9 (patch) | |
tree | 722cf377e7c99ac36871b488a6c532f078a66e81 /src | |
parent | cbe7b91ab66bd05f78cf6737b66269f0e341e8cc (diff) | |
download | marquee-dbeecfd6c3e15ca50f06979fea6ae3fac84bd0a9.zip marquee-dbeecfd6c3e15ca50f06979fea6ae3fac84bd0a9.tar.gz marquee-dbeecfd6c3e15ca50f06979fea6ae3fac84bd0a9.tar.bz2 |
mq_html_input_hidden(): Move declaration and definition
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/html.c | 18 | ||||
-rw-r--r-- | src/utils/html.h | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/utils/html.c b/src/utils/html.c index 4ceeb8b..7f10a51 100644 --- a/src/utils/html.c +++ b/src/utils/html.c @@ -925,15 +925,6 @@ mq_html_input_checkbox(const gchar *name, const gchar *label, gboolean checked) } gchar * -mq_html_input_hidden(const gchar *name, const gchar *value) -{ - return g_strdup_printf( - "<input type=\"text\" name=\"%s\" id=\"%s\" " - "value=\"%s\">\n", - name, name, value ? value : ""); -} - -gchar * mq_html_input_select(const gchar *name, const gchar *label, const gchar *selected, GDestroyNotify destroy_value, GDestroyNotify destroy_label, ...) @@ -1022,6 +1013,15 @@ mq_html_input_select(const gchar *name, const gchar *label, } gchar * +mq_html_input_hidden(const gchar *name, const gchar *value) +{ + return g_strdup_printf( + "<input type=\"text\" name=\"%s\" id=\"%s\" " + "value=\"%s\">\n", + name, name, value ? value : ""); +} + +gchar * mq_html_label(const gchar *for_id, const gchar *label, gboolean add_colon) { return g_strdup_printf( diff --git a/src/utils/html.h b/src/utils/html.h index 724c7cf..ec9b659 100644 --- a/src/utils/html.h +++ b/src/utils/html.h @@ -101,10 +101,10 @@ 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); +mq_html_input_hidden(const gchar *name, const gchar *value); gchar * -mq_html_input_hidden(const gchar *name, const gchar *value); +mq_html_label(const gchar *for_id, const gchar *label, gboolean add_colon); gchar * mq_html_submit(const gchar *name, const gchar *label, gboolean disabled); |