From 2c96093cd1622e22c11b50d939cce33d752ce3ee Mon Sep 17 00:00:00 2001
From: Patrick McDermott <pj@pehjota.net>
Date: Sat, 04 Nov 2017 21:20:58 -0400
Subject: mq_html_form*(): Add optional button names

---
(limited to 'src/schemes')

diff --git a/src/schemes/about/preferences.c b/src/schemes/about/preferences.c
index 6e65c3c..59ac9c6 100644
--- a/src/schemes/about/preferences.c
+++ b/src/schemes/about/preferences.c
@@ -243,7 +243,7 @@ mq_about_preferences_response(MqApplication *application, GHashTable *query,
 		mq_about_redirect(request, "mq-about:preferences");
 	} else {
 		document = mq_html_document("Preferences",
-			mq_html_form("Save", "Cancel",
+			mq_html_form(NULL, "Save", NULL, "Cancel",
 				mq_html_notebook(FALSE, "notebook1", 0,
 					gen_page_general(config),
 					"General",
diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c
index 3fc5fd9..c1e3d09 100644
--- a/src/schemes/about/profiles.c
+++ b/src/schemes/about/profiles.c
@@ -89,7 +89,7 @@ generate_document(MqProfiles *profiles)
 	g_strfreev(ids);
 
 	return mq_html_document("Profiles",
-		mq_html_form_v("Add Profile", NULL, divs),
+		mq_html_form_v("add", "Add Profile", NULL, NULL, divs),
 		NULL);
 }
 
--
cgit v0.9.1