aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-filter-source-element.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-07 11:38:52 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-13 01:58:59 +0800
commita06e4484b8df804124b5bcf88d94dec5acfba270 (patch)
tree4fa42793d7dc461f2b3767296d76592182c48222 /mail/em-filter-source-element.c
parent5e0758bb6934a7859b1d8a247c8fb21c156772cf (diff)
downloadgsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar
gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.gz
gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.bz2
gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.lz
gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.xz
gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.zst
gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.zip
Give MailSession a permanent home.
Global variables in shared libraries are a bad idea. EMailBackend now owns the MailSession instance, which is actually now EMailSession. Move the blocking utility functions in mail-tools.c to e-mail-session.c and add asynchronous variants. Same approach as Camel. Replace EMailReader.get_shell_backend() with EMailReader.get_backend(), which returns an EMailBackend. Easier access to the EMailSession.
Diffstat (limited to 'mail/em-filter-source-element.c')
-rw-r--r--mail/em-filter-source-element.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/em-filter-source-element.c b/mail/em-filter-source-element.c
index 9b30722f9a..1d56cc1fd2 100644
--- a/mail/em-filter-source-element.c
+++ b/mail/em-filter-source-element.c
@@ -144,10 +144,10 @@ em_filter_source_element_finalize (GObject *obj)
G_OBJECT_CLASS (parent_class)->finalize (obj);
}
-EMFilterSourceElement *
+EFilterElement *
em_filter_source_element_new (void)
{
- return (EMFilterSourceElement *)g_object_new (em_filter_source_element_get_type (), NULL, NULL);
+ return g_object_new (em_filter_source_element_get_type (), NULL, NULL);
}
static gint
@@ -215,9 +215,10 @@ static EFilterElement *
filter_clone (EFilterElement *fe)
{
EMFilterSourceElement *fs = (EMFilterSourceElement *)fe;
- EMFilterSourceElement *cpy = em_filter_source_element_new ();
+ EMFilterSourceElement *cpy;
GList *i;
+ cpy = (EMFilterSourceElement *) em_filter_source_element_new ();
((EFilterElement *)cpy)->name = (gchar *)xmlStrdup ((guchar *)fe->name);
cpy->priv->current_url = g_strdup (fs->priv->current_url);