diff options
-rw-r--r-- | src/utils/html.c | 5 | ||||
-rw-r--r-- | src/utils/html.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/utils/html.c b/src/utils/html.c index 9632baa..744e74d 100644 --- a/src/utils/html.c +++ b/src/utils/html.c @@ -682,11 +682,12 @@ mq_html_input_number_d(const gchar *name, const gchar *label, } gchar * -mq_html_input_radio(const gchar *name, const gchar *label, gboolean checked) +mq_html_input_radio(const gchar *name, const gchar *id, const gchar *label, + gboolean checked) { return g_strdup_printf("<label for=\"%s\">\n<span>%s:</span>\n" "<input type=\"radio\" name=\"%s\" id=\"%s\"%s>\n</label>\n", - name, label, name, name, checked ? " checked=\"checked\"" : ""); + name, label, name, id, checked ? " checked=\"checked\"" : ""); } gchar * diff --git a/src/utils/html.h b/src/utils/html.h index 023edb2..98b49b2 100644 --- a/src/utils/html.h +++ b/src/utils/html.h @@ -78,7 +78,8 @@ 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); +mq_html_input_radio(const gchar *name, const gchar *id, const gchar *label, + gboolean checked); gchar * mq_html_input_checkbox(const gchar *name, const gchar *label, gboolean checked); |