From c1694f37f26ab46f4bad394424f0394be11936cd Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 04 Nov 2017 15:30:56 -0400 Subject: mq_html_input_radio(): Add value parameter --- diff --git a/src/utils/html.c b/src/utils/html.c index 4c22221..0549457 100644 --- a/src/utils/html.c +++ b/src/utils/html.c @@ -842,21 +842,22 @@ mq_html_input_number_d(const gchar *name, const gchar *label, } gchar * -mq_html_input_radio(const gchar *name, const gchar *id, const gchar *label, - gboolean checked) +mq_html_input_radio(const gchar *name, const gchar *id, const gchar *value, + const gchar *label, gboolean checked) { if (label && label[0]) { return g_strdup_printf( "\n", - id, label, name, id, + id, label, name, id, value, checked ? " checked=\"checked\"" : ""); } else { return g_strdup_printf( - "\n", - name, id, + "\n", + name, id, value, checked ? " checked=\"checked\"" : ""); } } diff --git a/src/utils/html.h b/src/utils/html.h index 86067a9..53d4216 100644 --- a/src/utils/html.h +++ b/src/utils/html.h @@ -85,8 +85,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 *id, const gchar *label, - gboolean checked); +mq_html_input_radio(const gchar *name, const gchar *id, const gchar *value, + const gchar *label, gboolean checked); gchar * mq_html_input_checkbox(const gchar *name, const gchar *label, gboolean checked); -- cgit v0.9.1