aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-12-17 20:21:43 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-12-17 20:21:43 +0800
commitcb04b8196ff8e2867c5b6f52dfd395681c1db4b2 (patch)
tree47128bbe4a9d97e152203dd40db1e16850825b17
parentd8fc2ee08bf048d48f01d9c08583f5c1b4f2b4ed (diff)
downloadgsoc2013-evolution-cb04b8196ff8e2867c5b6f52dfd395681c1db4b2.tar
gsoc2013-evolution-cb04b8196ff8e2867c5b6f52dfd395681c1db4b2.tar.gz
gsoc2013-evolution-cb04b8196ff8e2867c5b6f52dfd395681c1db4b2.tar.bz2
gsoc2013-evolution-cb04b8196ff8e2867c5b6f52dfd395681c1db4b2.tar.lz
gsoc2013-evolution-cb04b8196ff8e2867c5b6f52dfd395681c1db4b2.tar.xz
gsoc2013-evolution-cb04b8196ff8e2867c5b6f52dfd395681c1db4b2.tar.zst
gsoc2013-evolution-cb04b8196ff8e2867c5b6f52dfd395681c1db4b2.zip
Use g_filename_to_uri() to construct a file: URI.
2005-12-17 Tor Lillqvist <tml@novell.com> * gui/e-cal-component-memo-preview.c (write_html): Use g_filename_to_uri() to construct a file: URI. svn path=/trunk/; revision=30804
-rw-r--r--calendar/ChangeLog3
-rw-r--r--calendar/gui/e-cal-component-memo-preview.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 6ea6635ebd..25059cced6 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -3,6 +3,9 @@
* conduits/calendar/calendar-conduit.c: Use GLib to construct
filenames from URIs and back.
+ * gui/e-cal-component-memo-preview.c (write_html): Use
+ g_filename_to_uri() to construct a file: URI.
+
2005-12-15 Srinivasa Ragavan <sragavan@novell.com>
** Fixes bug #324094
diff --git a/calendar/gui/e-cal-component-memo-preview.c b/calendar/gui/e-cal-component-memo-preview.c
index b653d2fdae..fd7d79dc00 100644
--- a/calendar/gui/e-cal-component-memo-preview.c
+++ b/calendar/gui/e-cal-component-memo-preview.c
@@ -162,8 +162,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 && g_file_test(icon_file, G_FILE_TEST_EXISTS)) {
- 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);
one_added = TRUE;
}
else{