[evolution-data-server] Avoid having backslashes in uri on windows



commit 87fd03fc794a1205bc56c14da94ac54813ed5335
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date:   Wed Sep 8 10:05:27 2010 +0200

    Avoid having backslashes in uri on windows

 .../groupwise/e-cal-backend-groupwise-utils.c      |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c b/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
index 61f207e..c621e84 100644
--- a/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
+++ b/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
@@ -909,13 +909,13 @@ set_attachments_to_cal_component (EGwItem *item, ECalComponent *comp, ECalBacken
 		gchar *filename;
 
 		attach_item = (EGwItemAttachment *) l->data;
-		attach_file_url = g_strconcat (
-			"file://", cache_dir, "/", uid, "-", attach_item->name, NULL);
+		filename = g_strconcat (
+			cache_dir, G_DIR_SEPARATOR_S, uid, "-", attach_item->name, NULL);
 
-		filename = g_filename_from_uri (attach_file_url, NULL, &error);
-		
-		if (!filename) {
-			g_message ("Could not get filename %s \n", error->message);
+		attach_file_url = g_filename_to_uri (filename, NULL, &error);
+
+		if (!attach_file_url) {
+			g_message ("Could not get attach_file_url %s \n", error->message);
 			g_clear_error (&error);
 			return;
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]