diff options
-rw-r--r-- | widgets/misc/ChangeLog | 8 | ||||
-rw-r--r-- | widgets/misc/e-attachment-bar.c | 6 | ||||
-rw-r--r-- | widgets/misc/e-attachment.c | 4 |
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); |