aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-10-25 21:17:23 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-10-27 21:25:01 +0800
commit2b16aef84141800099f859e72d05e1e6bf8e02dd (patch)
treeb7168d8e9a4157a1f6733b0c667dd6239c5e0055 /modules/mail
parent58166e645971a4812fef23702f45cacc8e64e419 (diff)
downloadgsoc2013-evolution-2b16aef84141800099f859e72d05e1e6bf8e02dd.tar.gz
gsoc2013-evolution-2b16aef84141800099f859e72d05e1e6bf8e02dd.tar.zst
gsoc2013-evolution-2b16aef84141800099f859e72d05e1e6bf8e02dd.zip
Cleanup and rename filter classes.
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-backend.c2
-rw-r--r--modules/mail/e-mail-shell-view-actions.c8
-rw-r--r--modules/mail/e-mail-shell-view-private.c14
-rw-r--r--modules/mail/e-mail-shell-view-private.h4
-rw-r--r--modules/mail/e-mail-shell-view.c20
5 files changed, 24 insertions, 24 deletions
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c
index 877087c546..0572cfd762 100644
--- a/modules/mail/e-mail-shell-backend.c
+++ b/modules/mail/e-mail-shell-backend.c
@@ -935,7 +935,7 @@ e_mail_shell_backend_register_type (GTypeModule *type_module)
/******************* Code below here belongs elsewhere. *******************/
-#include "filter/filter-option.h"
+#include "filter/e-filter-option.h"
#include "shell/e-shell-settings.h"
#include "mail/e-mail-label-list-store.h"
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 22aa88edcf..07fdf8f366 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -84,7 +84,7 @@ action_mail_create_search_folder_cb (GtkAction *action,
EShellView *shell_view;
EShellContent *shell_content;
MessageList *message_list;
- FilterRule *search_rule;
+ EFilterRule *search_rule;
EMVFolderRule *vfolder_rule;
const gchar *folder_uri;
const gchar *search_text;
@@ -108,8 +108,8 @@ action_mail_create_search_folder_cb (GtkAction *action,
search_rule = vfolder_clone_rule (search_rule);
rule_name = g_strdup_printf ("%s %s", search_rule->name, search_text);
- filter_rule_set_source (search_rule, FILTER_SOURCE_INCOMING);
- filter_rule_set_name (search_rule, rule_name);
+ e_filter_rule_set_source (search_rule, E_FILTER_SOURCE_INCOMING);
+ e_filter_rule_set_name (search_rule, rule_name);
g_free (rule_name);
vfolder_rule = EM_VFOLDER_RULE (search_rule);
@@ -969,7 +969,7 @@ action_search_quick_cb (GtkAction *action,
EShellView *shell_view;
EShellWindow *shell_window;
EShellContent *shell_content;
- FilterRule *search_rule;
+ EFilterRule *search_rule;
gint value;
/* Set the search rule in EShellContent so that "Create
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c
index e6c5417b9a..dd124f43c6 100644
--- a/modules/mail/e-mail-shell-view-private.c
+++ b/modules/mail/e-mail-shell-view-private.c
@@ -347,8 +347,8 @@ e_mail_shell_view_private_constructed (EMailShellView *mail_shell_view)
EShellWindow *shell_window;
EMFormatHTMLDisplay *html_display;
EMFolderTree *folder_tree;
- RuleContext *context;
- FilterRule *rule = NULL;
+ ERuleContext *context;
+ EFilterRule *rule = NULL;
GtkTreeSelection *selection;
GtkTreeModel *tree_model;
GtkUIManager *ui_manager;
@@ -489,8 +489,8 @@ e_mail_shell_view_private_constructed (EMailShellView *mail_shell_view)
* Keep the assertions, please. If the conditions aren't
* met we're going to crash anyway, just more mysteriously. */
context = e_shell_content_get_search_context (shell_content);
- source = FILTER_SOURCE_DEMAND;
- while ((rule = rule_context_next_rule (context, rule, source))) {
+ source = E_FILTER_SOURCE_DEMAND;
+ while ((rule = e_rule_context_next_rule (context, rule, source))) {
g_assert (ii < MAIL_NUM_SEARCH_RULES);
priv->search_rules[ii++] = g_object_ref (rule);
}
@@ -592,11 +592,11 @@ e_mail_shell_view_create_filter_from_selected (EMailShellView *mail_shell_view,
folder = message_list->folder;
if (em_utils_folder_is_sent (folder, folder_uri))
- filter_source = FILTER_SOURCE_OUTGOING;
+ filter_source = E_FILTER_SOURCE_OUTGOING;
else if (em_utils_folder_is_outbox (folder, folder_uri))
- filter_source = FILTER_SOURCE_OUTGOING;
+ filter_source = E_FILTER_SOURCE_OUTGOING;
else
- filter_source = FILTER_SOURCE_INCOMING;
+ filter_source = E_FILTER_SOURCE_INCOMING;
uids = message_list_get_selected (message_list);
diff --git a/modules/mail/e-mail-shell-view-private.h b/modules/mail/e-mail-shell-view-private.h
index a1c823c8f2..bf86f33720 100644
--- a/modules/mail/e-mail-shell-view-private.h
+++ b/modules/mail/e-mail-shell-view-private.h
@@ -35,7 +35,7 @@
#include "e-util/e-binding.h"
#include "e-util/gconf-bridge.h"
#include "e-util/e-account-utils.h"
-#include "filter/filter-part.h"
+#include "filter/e-filter-part.h"
#include "widgets/misc/e-web-view.h"
#include "widgets/misc/e-popup-action.h"
#include "widgets/menus/gal-view-instance.h"
@@ -137,7 +137,7 @@ struct _EMailShellViewPrivate {
guint label_merge_id;
/* Filter rules correspond to the search entry menu. */
- FilterRule *search_rules[MAIL_NUM_SEARCH_RULES];
+ EFilterRule *search_rules[MAIL_NUM_SEARCH_RULES];
guint show_deleted : 1;
};
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c
index b2ea509422..3c82e516bc 100644
--- a/modules/mail/e-mail-shell-view.c
+++ b/modules/mail/e-mail-shell-view.c
@@ -92,7 +92,7 @@ mail_shell_view_execute_search (EShellView *shell_view)
EMFormatHTMLDisplay *html_display;
EMailShellContent *mail_shell_content;
MessageList *message_list;
- FilterRule *rule;
+ EFilterRule *rule;
EMailReader *reader;
CamelFolder *folder;
GtkAction *action;
@@ -169,17 +169,17 @@ mail_shell_view_execute_search (EShellView *shell_view)
rule = priv->search_rules[value];
for (iter = rule->parts; iter != NULL; iter = iter->next) {
- FilterPart *part = iter->data;
- FilterElement *element = NULL;
+ EFilterPart *part = iter->data;
+ EFilterElement *element = NULL;
if (strcmp (part->name, "subject") == 0)
- element = filter_part_find_element (part, "subject");
+ element = e_filter_part_find_element (part, "subject");
else if (strcmp (part->name, "body") == 0)
- element = filter_part_find_element (part, "word");
+ element = e_filter_part_find_element (part, "word");
else if (strcmp (part->name, "sender") == 0)
- element = filter_part_find_element (part, "sender");
+ element = e_filter_part_find_element (part, "sender");
else if (strcmp (part->name, "to") == 0)
- element = filter_part_find_element (part, "recipient");
+ element = e_filter_part_find_element (part, "recipient");
if (strcmp (part->name, "body") == 0) {
struct _camel_search_words *words;
@@ -194,13 +194,13 @@ mail_shell_view_execute_search (EShellView *shell_view)
}
if (element != NULL) {
- FilterInput *input = FILTER_INPUT (element);
- filter_input_set_value (input, text);
+ EFilterInput *input = E_FILTER_INPUT (element);
+ e_filter_input_set_value (input, text);
}
}
string = g_string_sized_new (1024);
- filter_rule_build_code (rule, string);
+ e_filter_rule_build_code (rule, string);
query = g_string_free (string, FALSE);
filter: