aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-08-24 17:55:27 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-08-24 17:55:27 +0800
commitd04abd4269a9cf02f66b01de7a66b153316eea72 (patch)
tree3b94d904028af4086cace38ad2e956569d809ff8 /mail
parent6a356ab6ce805b1d747500fd9e4c5fbdcb841544 (diff)
downloadgsoc2013-evolution-d04abd4269a9cf02f66b01de7a66b153316eea72.tar
gsoc2013-evolution-d04abd4269a9cf02f66b01de7a66b153316eea72.tar.gz
gsoc2013-evolution-d04abd4269a9cf02f66b01de7a66b153316eea72.tar.bz2
gsoc2013-evolution-d04abd4269a9cf02f66b01de7a66b153316eea72.tar.lz
gsoc2013-evolution-d04abd4269a9cf02f66b01de7a66b153316eea72.tar.xz
gsoc2013-evolution-d04abd4269a9cf02f66b01de7a66b153316eea72.tar.zst
gsoc2013-evolution-d04abd4269a9cf02f66b01de7a66b153316eea72.zip
2007-08-24 Bharath Acharya Fix for bug #464338
svn path=/trunk/; revision=34091
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-folder-browser.c13
2 files changed, 10 insertions, 10 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e72b001bc8..7fdc495df2 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-24 Bharath Acharya <abharath@novell.com>
+
+ ** Fix for bug #464338
+
+ * em-folder-browser.c: (emfb_folder_create): Fetches the CamelFolderInfo
+ from the EMFolderTree.
+
2007-08-24 Li Yuan <li.yuan@sun.com>
* mail-config.glade:
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index df97444b3e..154c3fcabc 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -1429,25 +1429,18 @@ emfb_folder_create(BonoboUIComponent *uid, void *data, const char *path)
{
EMFolderBrowser *emfb = data;
CamelFolderInfo *fi = NULL;
- CamelException ex;
EMFolderTree *tree = g_object_get_data (G_OBJECT (emfb), "foldertree");
- camel_exception_init (&ex);
-
/* FIXME: This function MUST be multithreaded
FIXME: This interface should NOT use a folderinfo */
if (emfb->view.folder) {
- if ((fi = camel_store_get_folder_info (emfb->view.folder->parent_store,
- emfb->view.folder->full_name,
- CAMEL_STORE_FOLDER_INFO_FAST,
- &ex)) != NULL)
+ if ((fi = em_folder_tree_get_selected_folder_info (tree)) != NULL) {
em_folder_utils_create_folder(fi, tree);
+ camel_folder_info_free(fi);
+ }
} else {
em_folder_utils_create_folder(NULL, tree);
}
-
-
- camel_exception_clear (&ex);
return;
}