aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/groupwise-account-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/groupwise-features/groupwise-account-setup.c')
-rw-r--r--plugins/groupwise-features/groupwise-account-setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/groupwise-features/groupwise-account-setup.c b/plugins/groupwise-features/groupwise-account-setup.c
index 335a3b525e..f232bab055 100644
--- a/plugins/groupwise-features/groupwise-account-setup.c
+++ b/plugins/groupwise-features/groupwise-account-setup.c
@@ -27,6 +27,7 @@
#include <gconf/gconf-client.h>
#include "shell/es-event.h"
#include <string.h>
+#include <e-util/e-account-utils.h>
#define GROUPWISE_BASE_URI "groupwise://"
@@ -88,8 +89,8 @@ ensure_mandatory_esource_properties (EPlugin *ep, ESEventTargetUpgrade *target)
EAccountList *al;
EIterator *it;
+ al = e_get_account_list ();
client = gconf_client_get_default ();
- al = e_account_list_new (client);
for (it = e_list_get_iterator ((EList *)al);
e_iterator_is_valid (it);
@@ -103,7 +104,6 @@ ensure_mandatory_esource_properties (EPlugin *ep, ESEventTargetUpgrade *target)
set_esource_props ("/apps/evolution/tasks/sources", a, client, a->name);
set_esource_props ("/apps/evolution/memos/sources", a, client, a->name);
}
- g_object_unref (al);
g_object_unref (client);
}