From 37b493b8f7e7af84ac915def8d6c82168b2717ba Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 28 Jun 2001 18:46:23 +0000 Subject: Since we have an exception variable, we might as well use it when getting 2001-06-28 Jeffrey Stedfast * component-factory.c (destination_folder_handle_drop): Since we have an exception variable, we might as well use it when getting folders too. * folder-browser.c (message_list_drag_data_recieved): Call gtk_drag_finish. svn path=/trunk/; revision=10568 --- mail/component-factory.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'mail/component-factory.c') diff --git a/mail/component-factory.c b/mail/component-factory.c index fc8ba49e46..f568734921 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -396,9 +396,11 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *fol g_free (url); break; case ACCEPTED_DND_TYPE_MESSAGE_RFC822: - source = mail_tool_uri_to_folder (physical_uri, NULL); - if (!source) + source = mail_tool_uri_to_folder (physical_uri, &ex); + if (!source) { + camel_exception_clear (&ex); return FALSE; + } /* write the message(s) out to a CamelStream so we can use it */ stream = camel_stream_mem_new (); @@ -422,12 +424,14 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *fol inptr = strchr (name, ' '); name = g_strndup (name, inptr - name); - source = mail_tool_get_folder_from_urlname (url, name, 0, NULL); + source = mail_tool_get_folder_from_urlname (url, name, 0, &ex); g_free (name); g_free (url); - if (!source) + if (!source) { + camel_exception_clear (&ex); return FALSE; + } /* split the uids */ inptr++; -- cgit v1.2.3