aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-08-10 15:58:44 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-08-10 15:58:44 +0800
commit3e805c974231079ce66c535993c92c4be48696e2 (patch)
tree3ee53b6157135790029c038c3b161731eadea8c6
parent38280bb1daa5fe3712f28781ac61591bcdd521d1 (diff)
downloadgsoc2013-evolution-3e805c974231079ce66c535993c92c4be48696e2.tar
gsoc2013-evolution-3e805c974231079ce66c535993c92c4be48696e2.tar.gz
gsoc2013-evolution-3e805c974231079ce66c535993c92c4be48696e2.tar.bz2
gsoc2013-evolution-3e805c974231079ce66c535993c92c4be48696e2.tar.lz
gsoc2013-evolution-3e805c974231079ce66c535993c92c4be48696e2.tar.xz
gsoc2013-evolution-3e805c974231079ce66c535993c92c4be48696e2.tar.zst
gsoc2013-evolution-3e805c974231079ce66c535993c92c4be48696e2.zip
Fix for bug #341482
svn path=/trunk/; revision=32522
-rw-r--r--widgets/misc/ChangeLog8
-rw-r--r--widgets/misc/e-attachment-bar.c6
-rw-r--r--widgets/misc/e-attachment.c4
3 files changed, 13 insertions, 5 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index d8df9e8ccd..65cc2ccce8 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,11 @@
+2006-08-10 Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Fix for bug #341482
+
+ * e-attachment-bar.c: (eab_drag_data_get), (eab_icon_clicked_cb):
+ * e-attachment.c: (e_attachment_new),
+ (e_attachment_build_remote_file): Use file:// as the uri.
+
2006-08-04 Johnny Jacob <jjohnny@novell.com>
* e-icon-entry.c: (set_cursor) : Added. Change cursor over icon.
diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c
index 3efe865681..4b67ba21ec 100644
--- a/widgets/misc/e-attachment-bar.c
+++ b/widgets/misc/e-attachment-bar.c
@@ -790,7 +790,7 @@ eab_drag_data_get(EAttachmentBar *bar, GdkDragContext *drag, GtkSelectionData *d
if (!(path = temp_save_part (attachment->body)))
continue;
- url = camel_url_new ("file:", NULL);
+ url = camel_url_new ("file://", NULL);
camel_url_set_path (url, path);
attachment->store_uri = camel_url_to_string (url, 0);
camel_url_free (url);
@@ -903,13 +903,13 @@ eab_icon_clicked_cb (EAttachmentBar *bar, GdkEvent *event, gpointer *dummy)
/* Check if the file is stored already */
if (!attachment->store_uri) {
path = temp_save_part (attachment->body);
- url = camel_url_new ("file:", NULL);
+ url = camel_url_new ("file://", NULL);
camel_url_set_path (url, path);
attachment->store_uri = camel_url_to_string (url, 0);
camel_url_free (url);
g_free (path);
}
-
+
/* launch the url now */
gnome_url_show (attachment->store_uri, &error);
if (error) {
diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c
index 570c2e3332..b865ce173a 100644
--- a/widgets/misc/e-attachment.c
+++ b/widgets/misc/e-attachment.c
@@ -304,7 +304,7 @@ e_attachment_new (const char *file_name, const char *disposition, CamelException
new->is_available_local = TRUE;
new->file_name = filename;
- url = camel_url_new ("file:", NULL);
+ url = camel_url_new ("file://", NULL);
camel_url_set_path (url, file_name);
new->store_uri = camel_url_to_string (url, 0);
camel_url_free (url);
@@ -505,7 +505,7 @@ e_attachment_build_remote_file (const char *file_name, EAttachment *attachment,
g_free (attachment->file_name);
attachment->file_name = filename;
- url = camel_url_new ("file:", NULL);
+ url = camel_url_new ("file://", NULL);
camel_url_set_path (url, file_name);
attachment->store_uri = camel_url_to_string (url, 0);
camel_url_free (url);