aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-vfolder-context.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-01-08 19:20:24 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-01-08 19:20:24 +0800
commitc6bd0b0932f3cfe78b8b76f71b57f51afab74db3 (patch)
treef6e23bb8af903618315ee1b2a1844391bfec33bf /mail/em-vfolder-context.c
parent37362c7b255ab1b932db1c9e41da146dd43abfa7 (diff)
downloadgsoc2013-evolution-c6bd0b0932f3cfe78b8b76f71b57f51afab74db3.tar.gz
gsoc2013-evolution-c6bd0b0932f3cfe78b8b76f71b57f51afab74db3.tar.zst
gsoc2013-evolution-c6bd0b0932f3cfe78b8b76f71b57f51afab74db3.zip
** Fix for bug #565376
2009-01-08 Milan Crha <mcrha@redhat.com> ** Fix for bug #565376 * vfoldertypes.xml: * searchtypes.xml: Merge some search types together. * em-vfolder-context.c: (vfolder_new_element): More elements. * em-filter-folder-element.h: (struct _EMFilterFolderElement): * em-filter-folder-element.c: (xml_encode), (xml_decode), (folder_selected), (get_widget), (format_sexp): Support storing folder uri in a camel's way. * em-format-html-display.c: (efhd_use_component): Compiler warning fix. svn path=/trunk/; revision=37015
Diffstat (limited to 'mail/em-vfolder-context.c')
-rw-r--r--mail/em-vfolder-context.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mail/em-vfolder-context.c b/mail/em-vfolder-context.c
index eebf12e960..88c97b0a0f 100644
--- a/mail/em-vfolder-context.c
+++ b/mail/em-vfolder-context.c
@@ -33,6 +33,8 @@
#include "filter/filter-option.h"
#include "filter/filter-int.h"
+#include "em-filter-folder-element.h"
+
static FilterElement *vfolder_new_element(RuleContext *rc, const char *type);
static RuleContextClass *parent_class = NULL;
@@ -108,6 +110,13 @@ vfolder_new_element(RuleContext *rc, const char *type)
return (FilterElement *) filter_option_new();
} else if (!strcmp(type, "score")) {
return (FilterElement *) filter_int_new_type("score", -3, 3);
+ } else if (!strcmp(type, "folder-curi")) {
+ EMFilterFolderElement *ff = em_filter_folder_element_new ();
+ if (ff)
+ ff->store_camel_uri = TRUE;
+ return (FilterElement *) ff;
+ } else if (!strcmp(type, "folder")) {
+ return (FilterElement *) em_filter_folder_element_new();
} else {
return parent_class->new_element(rc, type);
}