aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-04-26 21:20:50 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:57 +0800
commit801450b0f391a90ce1b2726ecb571026819673b9 (patch)
tree611d5793ba1fcd3aa45b686be1041828a50a09dd /mail
parentd2e0897fcffad81ad5e1518d9dcb969066b68412 (diff)
downloadgsoc2013-evolution-801450b0f391a90ce1b2726ecb571026819673b9.tar
gsoc2013-evolution-801450b0f391a90ce1b2726ecb571026819673b9.tar.gz
gsoc2013-evolution-801450b0f391a90ce1b2726ecb571026819673b9.tar.bz2
gsoc2013-evolution-801450b0f391a90ce1b2726ecb571026819673b9.tar.lz
gsoc2013-evolution-801450b0f391a90ce1b2726ecb571026819673b9.tar.xz
gsoc2013-evolution-801450b0f391a90ce1b2726ecb571026819673b9.tar.zst
gsoc2013-evolution-801450b0f391a90ce1b2726ecb571026819673b9.zip
Remove redundant EAccountList utilities.
Kill itip_addresses_get() and itip_addresses_get_default(), and use e_get_account_list() and e_get_default_account() instead.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-filter-source-element.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mail/em-filter-source-element.c b/mail/em-filter-source-element.c
index ab4c049183..ee6785f15c 100644
--- a/mail/em-filter-source-element.c
+++ b/mail/em-filter-source-element.c
@@ -32,7 +32,8 @@
#include <gtk/gtk.h>
#include <camel/camel.h>
#include <libedataserver/e-sexp.h>
-#include <libedataserver/e-account-list.h>
+
+#include <e-util/e-account-utils.h>
#include "filter/e-filter-part.h"
@@ -342,15 +343,12 @@ em_filter_source_element_get_sources (EMFilterSourceElement *fs)
{
EAccountList *accounts;
const EAccount *account;
- GConfClient *gconf;
EIterator *it;
gchar *uri;
CamelURL *url;
/* should this get the global object from mail? */
- gconf = gconf_client_get_default ();
- accounts = e_account_list_new (gconf);
- g_object_unref (gconf);
+ accounts = e_get_account_list ();
for (it = e_list_get_iterator ((EList *)accounts);
e_iterator_is_valid (it);
@@ -369,6 +367,6 @@ em_filter_source_element_get_sources (EMFilterSourceElement *fs)
g_free (uri);
}
}
+
g_object_unref (it);
- g_object_unref (accounts);
}