aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-08-30 19:58:12 +0800
committerMilan Crha <mcrha@redhat.com>2010-08-30 19:58:12 +0800
commit680c58a7660020c614690421ff0e37ee55b2c9aa (patch)
treeba10ff6fe41672448007e9a843acf8031446c3d2
parent252ed73211d3e89077a7718e857a11a6f41e4e05 (diff)
downloadgsoc2013-evolution-680c58a7660020c614690421ff0e37ee55b2c9aa.tar.gz
gsoc2013-evolution-680c58a7660020c614690421ff0e37ee55b2c9aa.tar.zst
gsoc2013-evolution-680c58a7660020c614690421ff0e37ee55b2c9aa.zip
Bug #627101 - Not able to attach files in calendar
-rw-r--r--calendar/gui/dialogs/comp-editor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index ce01b7da4d..6c5092e508 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -273,7 +273,7 @@ get_attachment_list (CompEditor *editor)
GSList *list = NULL;
const gchar *comp_uid = NULL;
const gchar *local_store;
- gchar *uri;
+ gchar *path;
gint ii;
struct {
@@ -291,9 +291,9 @@ get_attachment_list (CompEditor *editor)
local_store = e_cal_get_local_attachment_store (editor->priv->client);
e_cal_component_get_uid (editor->priv->comp, &comp_uid);
- uri = g_build_path ("/", local_store, comp_uid, NULL);
- destination = g_file_new_for_uri (uri);
- g_free (uri);
+ path = g_build_path ("/", local_store, comp_uid, NULL);
+ destination = g_file_new_for_path (path);
+ g_free (path);
e_attachment_store_save_async (
store, destination, (GAsyncReadyCallback)