aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-27 03:10:19 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-27 03:10:19 +0800
commit641d49b55bf78c9c7d6c32d08e9cc7b0e0f5a399 (patch)
tree9f9fc4b6d2dd6e033cea59aec64e05993b7f623d /mail
parent9d27429cc84587fe5699e4e42d69961007b1c44d (diff)
downloadgsoc2013-evolution-641d49b55bf78c9c7d6c32d08e9cc7b0e0f5a399.tar.gz
gsoc2013-evolution-641d49b55bf78c9c7d6c32d08e9cc7b0e0f5a399.tar.zst
gsoc2013-evolution-641d49b55bf78c9c7d6c32d08e9cc7b0e0f5a399.zip
Add a new menu item for posting to the New toolbar button thing.
2002-07-26 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (create_component): Add a new menu item for posting to the New toolbar button thing. (destination_folder_handle_drop): Don't use a NULL exception when we already have one to use anyway. (got_folder): Move the *fp = folder; to before the check to make sure folder != NULL, this makes it so that if getting a folder fails at least have have a known value to look out for (NULL) rather than some random garbage. svn path=/trunk/; revision=17617
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/component-factory.c10
2 files changed, 12 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 9b29e77c8c..e0f8117b68 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -2,6 +2,12 @@
* component-factory.c (create_component): Add a new menu item for
posting to the New toolbar button thing.
+ (destination_folder_handle_drop): Don't use a NULL exception when
+ we already have one to use anyway.
+ (got_folder): Move the *fp = folder; to before the check to make
+ sure folder != NULL, this makes it so that if getting a folder
+ fails at least have have a known value to look out for (NULL)
+ rather than some random garbage.
2002-07-25 Jeffrey Stedfast <fejj@ximian.com>
diff --git a/mail/component-factory.c b/mail/component-factory.c
index e2778ffc8d..1f95caa077 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -547,9 +547,11 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *des
switch (type) {
case ACCEPTED_DND_TYPE_TEXT_URI_LIST:
- folder = mail_tool_uri_to_folder (physical_uri, 0, NULL);
- if (!folder)
+ folder = mail_tool_uri_to_folder (physical_uri, 0, &ex);
+ if (!folder) {
+ camel_exception_clear (&ex);
return FALSE;
+ }
tmp = g_strndup (data->bytes._buffer, data->bytes._length);
urls = g_strsplit (tmp, "\n", 0);
@@ -665,9 +667,9 @@ got_folder (char *uri, CamelFolder *folder, void *data)
{
CamelFolder **fp = data;
+ *fp = folder;
+
if (folder) {
- *fp = folder;
-
camel_object_ref (CAMEL_OBJECT (folder));
/* emit a changed event, this is a little hack so that the folderinfo cache