aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-04-10 19:05:55 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-04-10 19:05:55 +0800
commit1509a85170184895f6c91f9c57167a74af5cd2db (patch)
tree77e1afcbbe5b42b425619092f1609cbe529b1d0e /composer
parentc2282f18c4592e4c911d893290e14a5fcd4fb3b3 (diff)
downloadgsoc2013-evolution-1509a85170184895f6c91f9c57167a74af5cd2db.tar
gsoc2013-evolution-1509a85170184895f6c91f9c57167a74af5cd2db.tar.gz
gsoc2013-evolution-1509a85170184895f6c91f9c57167a74af5cd2db.tar.bz2
gsoc2013-evolution-1509a85170184895f6c91f9c57167a74af5cd2db.tar.lz
gsoc2013-evolution-1509a85170184895f6c91f9c57167a74af5cd2db.tar.xz
gsoc2013-evolution-1509a85170184895f6c91f9c57167a74af5cd2db.tar.zst
gsoc2013-evolution-1509a85170184895f6c91f9c57167a74af5cd2db.zip
Convert "import-ics-attachments" plugin to an EAttachmentHandler subclass.
svn path=/branches/kill-bonobo/; revision=37510
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-private.c1
-rw-r--r--composer/e-msg-composer.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 91d71850fd..fd345d6410 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -152,7 +152,6 @@ e_composer_private_init (EMsgComposer *composer)
/* Construct the attachment paned. */
widget = e_attachment_paned_new ();
- /*gtk_container_set_border_width (GTK_CONTAINER (widget), 6);*/
gtk_box_pack_start (GTK_BOX (container), widget, TRUE, TRUE, 0);
priv->attachment_paned = g_object_ref (widget);
gtk_widget_show (widget);
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index ad61b1b461..e8375d8b85 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -3419,7 +3419,10 @@ handle_mailto (EMsgComposer *composer, const gchar *mailto)
!g_ascii_strcasecmp (header, "attachment")) {
EAttachment *attachment;
- attachment = e_attachment_new_for_uri (content);
+ if (g_ascii_strncasecmp (content, "file:", 5) == 0)
+ attachment = e_attachment_new_for_uri (content);
+ else
+ attachment = e_attachment_new_for_path (content);
e_attachment_store_add_attachment (store, attachment);
e_attachment_load_async (
attachment, (GAsyncReadyCallback)