diff options
author | Milan Crha <mcrha@src.gnome.org> | 2007-09-26 20:50:13 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-09-26 20:50:13 +0800 |
commit | c54e15f7cfe18f697baa11a8a44b458cb7694c28 (patch) | |
tree | 3576848263913ffd74186bd30bec4e4fbead4b70 /widgets/misc/e-attachment-bar.c | |
parent | ec587dd42837f286065ecd3f722b6dfc670f4d21 (diff) | |
download | gsoc2013-evolution-c54e15f7cfe18f697baa11a8a44b458cb7694c28.tar.gz gsoc2013-evolution-c54e15f7cfe18f697baa11a8a44b458cb7694c28.tar.zst gsoc2013-evolution-c54e15f7cfe18f697baa11a8a44b458cb7694c28.zip |
2007-09-26 mcrha Fix for bug #423401
svn path=/trunk/; revision=34310
Diffstat (limited to 'widgets/misc/e-attachment-bar.c')
-rw-r--r-- | widgets/misc/e-attachment-bar.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c index 221558f937..0525887cc4 100644 --- a/widgets/misc/e-attachment-bar.c +++ b/widgets/misc/e-attachment-bar.c @@ -1203,19 +1203,21 @@ e_attachment_bar_attach_remote_file (EAttachmentBar *bar, const char *url, const { EAttachment *attachment; CamelException ex; + GtkWindow *parent; g_return_if_fail (E_IS_ATTACHMENT_BAR (bar)); if (!bar->priv->path) bar->priv->path = e_mkdtemp ("attach-XXXXXX"); - + + parent = (GtkWindow *) gtk_widget_get_toplevel ((GtkWidget *) bar); camel_exception_init (&ex); - if ((attachment = e_attachment_new_remote_file (url, disposition, bar->priv->path, &ex))) { + if ((attachment = e_attachment_new_remote_file (parent, url, disposition, bar->priv->path, &ex))) { add_common (bar, attachment); g_signal_connect (attachment, "update", G_CALLBACK (update_remote_file), bar); } else { - e_error_run ((GtkWindow *) gtk_widget_get_toplevel ((GtkWidget *) bar), "mail-composer:no-attach", - attachment->file_name, camel_exception_get_description (&ex), NULL); + e_error_run (parent, "mail-composer:no-attach", + url, camel_exception_get_description (&ex), NULL); camel_exception_clear (&ex); } } |