diff options
Diffstat (limited to 'src/schemes')
-rw-r--r-- | src/schemes/about/profiles.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c index a130800..69043ec 100644 --- a/src/schemes/about/profiles.c +++ b/src/schemes/about/profiles.c @@ -180,6 +180,8 @@ generate_document(MqProfiles *profiles, gboolean adding) gsize length; gchar **divs; gsize i; + gchar *cp_res; + gchar *document; ids = mq_profiles_get_profiles(profiles, &length); divs = g_new(gchar *, length + (adding ? 1 : 0) + 1); @@ -192,9 +194,21 @@ generate_document(MqProfiles *profiles, gboolean adding) divs[i] = NULL; g_strfreev(ids); - return mq_html_document("Profiles", styles, + cp_res = g_strdup( + "<script src=\"mq-about:resources/flexi-color-picker/" + "colorpicker.js\"></script>\n" + "<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" " + "href=\"mq-about:resources/flexi-color-picker/" + "themes.css\">\n" + ); + + document = mq_html_document("Profiles", styles, cp_res, mq_html_form_v("add", "Add Profile", NULL, NULL, divs), NULL); + + g_free(cp_res); + + return document; } static void |