diff options
author | Tor Lillqvist <tml@novell.com> | 2005-12-18 01:20:39 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-12-18 01:20:39 +0800 |
commit | a6b4bade41b7a1f061cb15b2ea031b0007ee5c23 (patch) | |
tree | 8ab9d86dd3a0fa60752b640416fce8cad172f3db /calendar/gui | |
parent | 72405e0b8bbbc7822a0027e491dec77edc013f47 (diff) | |
download | gsoc2013-evolution-a6b4bade41b7a1f061cb15b2ea031b0007ee5c23.tar gsoc2013-evolution-a6b4bade41b7a1f061cb15b2ea031b0007ee5c23.tar.gz gsoc2013-evolution-a6b4bade41b7a1f061cb15b2ea031b0007ee5c23.tar.bz2 gsoc2013-evolution-a6b4bade41b7a1f061cb15b2ea031b0007ee5c23.tar.lz gsoc2013-evolution-a6b4bade41b7a1f061cb15b2ea031b0007ee5c23.tar.xz gsoc2013-evolution-a6b4bade41b7a1f061cb15b2ea031b0007ee5c23.tar.zst gsoc2013-evolution-a6b4bade41b7a1f061cb15b2ea031b0007ee5c23.zip |
Use GLib to construct filenames from URIs and vice versa.
2005-12-17 Tor Lillqvist <tml@novell.com>
* gui/e-cal-component-preview.c: Use GLib to construct
filenames from URIs and vice versa.
svn path=/trunk/; revision=30831
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-cal-component-preview.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/gui/e-cal-component-preview.c b/calendar/gui/e-cal-component-preview.c index 32f885f634..982e4a3ab3 100644 --- a/calendar/gui/e-cal-component-preview.c +++ b/calendar/gui/e-cal-component-preview.c @@ -165,8 +165,10 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone icon_file = e_categories_get_icon_file_for ((const char *) node->data); if (icon_file) { - gtk_html_stream_printf (stream, "<IMG ALT=\"%s\" SRC=\"file://%s\">", - (const char *) node->data, icon_file); + gchar *icon_file_uri = g_filename_to_uri (icon_file, NULL, NULL); + gtk_html_stream_printf (stream, "<IMG ALT=\"%s\" SRC=\"%s\">", + (const char *) node->data, icon_file_uri); + g_free (icon_file_uri); } } |