From de28e372c6ca08ab20ac57e452f559f2eac233b8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 07 Nov 2017 21:50:39 -0500 Subject: about:profiles: Add "Launch" buttons --- (limited to 'src/schemes/about/profiles.c') diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c index 0d499d1..e4e23ad 100644 --- a/src/schemes/about/profiles.c +++ b/src/schemes/about/profiles.c @@ -244,6 +244,7 @@ generate_div(MqProfiles *profiles, gchar *id) gchar *editing_str; gchar *name_str; gchar *color_str; + gchar *launch_str; gchar *default_str; gchar *delete_str; gchar *save_str; @@ -264,6 +265,7 @@ generate_div(MqProfiles *profiles, gchar *id) editing_str = g_strconcat("editing_", id, NULL); name_str = g_strconcat("name_", id, NULL); color_str = g_strconcat("color_", id, NULL); + launch_str = g_strconcat("launch_", id, NULL); default_str = g_strconcat("default_", id, NULL); delete_str = g_strconcat("delete_", id, NULL); save_str = g_strconcat("save_", id, NULL); @@ -296,6 +298,7 @@ generate_div(MqProfiles *profiles, gchar *id) mq_html_container("span", is_current ? "current" : NULL, name, NULL), mq_html_input_text(name_str, NULL, name), + mq_html_submit(launch_str, "Launch", FALSE), mq_html_submit(default_str, "Make Default", !id || mq_profiles_is_default(profiles, id)), mq_html_submit(delete_str, "Delete", FALSE), @@ -305,6 +308,7 @@ generate_div(MqProfiles *profiles, gchar *id) g_free(editing_str); g_free(name_str); + g_free(launch_str); g_free(default_str); g_free(delete_str); g_free(save_str); -- cgit v0.9.1