diff options
author | Not Zed <NotZed@Ximian.com> | 2004-03-31 18:09:04 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-03-31 18:09:04 +0800 |
commit | 9e126a8d01dd36a19ab34a9d3edf016897b12d7e (patch) | |
tree | 9a57659490abf68cb1abd341a0d939f30fc1074e /mail/em-folder-tree.c | |
parent | d239a18ce4bff4bd07c17118ca429f5020fc1731 (diff) | |
download | gsoc2013-evolution-9e126a8d01dd36a19ab34a9d3edf016897b12d7e.tar.gz gsoc2013-evolution-9e126a8d01dd36a19ab34a9d3edf016897b12d7e.tar.zst gsoc2013-evolution-9e126a8d01dd36a19ab34a9d3edf016897b12d7e.zip |
Cleaned up header inclusions and added plenty of forward declarations.
2004-03-31 Not Zed <NotZed@Ximian.com>
* *.[ch]: Cleaned up header inclusions and added plenty of forward
declarations. Sped up complete re-compilation by upto 20%.
** See bug #55950.
* em-utils.c (em_utils_in_addressbook): utility for checking if an
email address is in the addressbook. I can't tell if it works
'cause it crashes eds.
* em-format-html.c (emfh_gethttp): handle addressbook checking.
2004-03-30 Not Zed <NotZed@Ximian.com>
* mail-config.h: clean up the headers and use some forward decl's
instead.
* em-format-html.c (em_format_html_set_load_http): change state to
an int 'style' instead.
* em-folder-view.c (emfv_setting_notify): set the format load http
option to the config value directly.
** See bug #56147.
* message-list.c (clear_info): set the node data to NULL when we
unref its data.
(ml_get_save_id): use a different test for the root node, and
return NULL if we don't have any data on the node (because we're
cleaing it).
** See bug #54962.
* em-folder-tree.c (emft_popup_new_folder_response): put back the
old hack to open the vfolder editor if you try to create a folder
under vfolders.
** See bug #55940.
* mail-autofilter.c (mail_filter_rename_uri): map the uri to an
email uri before passing to filter code.
(mail_filter_delete_uri): same here.
svn path=/trunk/; revision=25261
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index e17c2b5eed..43fa77cb7a 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -51,11 +51,14 @@ #include "e-util/e-request.h" #include "e-util/e-dialog-utils.h" +#include "filter/vfolder-rule.h" + #include "mail-mt.h" #include "mail-ops.h" #include "mail-tools.h" #include "mail-config.h" #include "mail-component.h" +#include "mail-vfolder.h" #include "em-utils.h" #include "em-popup.h" @@ -2200,11 +2203,20 @@ emft_popup_new_folder_response (EMFolderSelector *emfs, int response, EMFolderTr camel_object_unref (store); return; } - + + /* HACK: we need to create vfolders using the vfolder editor */ + if (CAMEL_IS_VEE_STORE(store)) { + VfolderRule *rule; + + rule = vfolder_rule_new(); + filter_rule_set_name((FilterRule *)rule, path); + vfolder_gui_add_rule(rule); + } else { + g_object_ref (emfs); + emft_create_folder (si->store, path, new_folder_created_cb, emfs); + } + camel_object_unref (store); - - g_object_ref (emfs); - emft_create_folder (si->store, path, new_folder_created_cb, emfs); } static void |