diff options
author | Burt P <pburt0@gmail.com> | 2019-07-06 23:20:30 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-07-10 12:24:36 -0700 |
commit | 1a6086f6e16db1536e04050a0ac2637cc0f7d8b8 (patch) | |
tree | 3ed1e7b94b7d1dee5e06888b1606ca9a922e90ed /shell/report.c | |
parent | 754a87070910c336c7f62074aeac587374f85403 (diff) |
Add SVG icon support in report HTML and Xubuntu icon to demonstrate
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'shell/report.c')
-rw-r--r-- | shell/report.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/report.c b/shell/report.c index 429d0746..89fcc4a3 100644 --- a/shell/report.c +++ b/shell/report.c @@ -107,7 +107,9 @@ gchar *make_icon_css(const gchar *file) { gsize length = 0; if ( g_file_get_contents(path, &contents, &length, NULL) ) { gchar *css_class = icon_name_css_id(file); - const char ctype[] = "image/png"; + const char *ctype = "image/png"; + if (g_str_has_suffix(file, ".svg") ) + ctype = "image/svg+xml"; gchar *b64data = g_base64_encode(contents, length); ret = g_strdup_printf( ".%s\n" |