diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-05-25 14:06:16 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-05-25 14:06:16 +0800 |
commit | c345604989402eab7e4c72bcf9e249792c0810bb (patch) | |
tree | d79cf7d9eda9d81d5a28ebab62470f1d1ca1058a /widgets/misc/e-attachment-bar.c | |
parent | 24368cf92dd5eaae1b41b3f191a25e2cbc45e824 (diff) | |
download | gsoc2013-evolution-c345604989402eab7e4c72bcf9e249792c0810bb.tar gsoc2013-evolution-c345604989402eab7e4c72bcf9e249792c0810bb.tar.gz gsoc2013-evolution-c345604989402eab7e4c72bcf9e249792c0810bb.tar.bz2 gsoc2013-evolution-c345604989402eab7e4c72bcf9e249792c0810bb.tar.lz gsoc2013-evolution-c345604989402eab7e4c72bcf9e249792c0810bb.tar.xz gsoc2013-evolution-c345604989402eab7e4c72bcf9e249792c0810bb.tar.zst gsoc2013-evolution-c345604989402eab7e4c72bcf9e249792c0810bb.zip |
Added support for saving/attaching files/events/mails from/to remote shares
svn path=/trunk/; revision=32024
Diffstat (limited to 'widgets/misc/e-attachment-bar.c')
-rw-r--r-- | widgets/misc/e-attachment-bar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c index c6bf9972f3..b8dda048d5 100644 --- a/widgets/misc/e-attachment-bar.c +++ b/widgets/misc/e-attachment-bar.c @@ -926,8 +926,8 @@ eab_icon_clicked_cb (EAttachmentBar *bar, GdkEvent *event, gpointer *dummy) if (!attachment->store_uri) { CamelURL *curl; - path = temp_save_part (attachment->body); - curl = camel_url_new ("file:", NULL); + path = temp_save_part (attachment->body); + curl = camel_url_new ("file://", NULL); camel_url_set_path ( curl, path); attachment->store_uri = camel_url_to_string (curl, 0); camel_url_free (curl); @@ -1227,7 +1227,7 @@ e_attachment_bar_get_download_count (EAttachmentBar *bar) void e_attachment_bar_attach_remote_file (EAttachmentBar *bar, - const gchar *url) + const gchar *url, const char *disposition) { EAttachment *attachment; CamelException ex; @@ -1239,7 +1239,7 @@ e_attachment_bar_attach_remote_file (EAttachmentBar *bar, bar->priv->path = e_mkdtemp("attach-XXXXXX"); camel_exception_init (&ex); - attachment = e_attachment_new_remote_file (url, "attachment", bar->priv->path, &ex); + attachment = e_attachment_new_remote_file (url, disposition, bar->priv->path, &ex); g_signal_connect (attachment, "update", G_CALLBACK(update_remote_file), bar); if (attachment) { add_common (bar, attachment); |