From a6b4bade41b7a1f061cb15b2ea031b0007ee5c23 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 17 Dec 2005 17:20:39 +0000 Subject: Use GLib to construct filenames from URIs and vice versa. 2005-12-17 Tor Lillqvist * gui/e-cal-component-preview.c: Use GLib to construct filenames from URIs and vice versa. svn path=/trunk/; revision=30831 --- calendar/ChangeLog | 3 ++- calendar/gui/e-cal-component-preview.c | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 8de3da0e90..4a0e285045 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,7 +1,8 @@ 2005-12-17 Tor Lillqvist * conduits/calendar/calendar-conduit.c - * gui/e-cal-component-memo-preview.c: Use GLib to construct + * gui/e-cal-component-memo-preview.c + * gui/e-cal-component-preview.c: Use GLib to construct filenames from URIs and vice versa. * gui/e-cal-list-view.c 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, "\"%s\"", - (const char *) node->data, icon_file); + gchar *icon_file_uri = g_filename_to_uri (icon_file, NULL, NULL); + gtk_html_stream_printf (stream, "\"%s\"", + (const char *) node->data, icon_file_uri); + g_free (icon_file_uri); } } -- cgit