diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-05 15:40:11 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-05 15:40:11 (EST) |
commit | b5dbc6592a103e44a7ef2d93e6f86a86faa083d5 (patch) | |
tree | 4eead3fdaf77e0ea0164899291dbb9268453275f /src/schemes | |
parent | 78b813bff6b26302f290dfe12e08ad2087f099eb (diff) | |
download | marquee-b5dbc6592a103e44a7ef2d93e6f86a86faa083d5.zip marquee-b5dbc6592a103e44a7ef2d93e6f86a86faa083d5.tar.gz marquee-b5dbc6592a103e44a7ef2d93e6f86a86faa083d5.tar.bz2 |
about:profiles: Add color picker resources to document
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 |