diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-18 22:42:48 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-19 00:32:38 +0800 |
commit | ec170e47fdeb57272110fa3ef9164a98d8b69d84 (patch) | |
tree | c3442ae4984e847e664af1cbd4c9305d9c8e8c6b /plugins/groupwise-features | |
parent | e555c2bff07d0f6d2778117cd28c3eb04f381f75 (diff) | |
download | gsoc2013-evolution-ec170e47fdeb57272110fa3ef9164a98d8b69d84.tar gsoc2013-evolution-ec170e47fdeb57272110fa3ef9164a98d8b69d84.tar.gz gsoc2013-evolution-ec170e47fdeb57272110fa3ef9164a98d8b69d84.tar.bz2 gsoc2013-evolution-ec170e47fdeb57272110fa3ef9164a98d8b69d84.tar.lz gsoc2013-evolution-ec170e47fdeb57272110fa3ef9164a98d8b69d84.tar.xz gsoc2013-evolution-ec170e47fdeb57272110fa3ef9164a98d8b69d84.tar.zst gsoc2013-evolution-ec170e47fdeb57272110fa3ef9164a98d8b69d84.zip |
Move more account utilities to e-account-utils.c.
Diffstat (limited to 'plugins/groupwise-features')
-rw-r--r-- | plugins/groupwise-features/install-shared.c | 4 | ||||
-rw-r--r-- | plugins/groupwise-features/proxy-login.c | 5 | ||||
-rw-r--r-- | plugins/groupwise-features/share-folder-common.c | 4 |
3 files changed, 6 insertions, 7 deletions
diff --git a/plugins/groupwise-features/install-shared.c b/plugins/groupwise-features/install-shared.c index b216d49085..0a7cd1ace5 100644 --- a/plugins/groupwise-features/install-shared.c +++ b/plugins/groupwise-features/install-shared.c @@ -30,12 +30,12 @@ #include <glib/gi18n.h> #include <gconf/gconf-client.h> #include <e-util/e-config.h> +#include <e-util/e-account-utils.h> #include <shell/e-shell.h> #include <mail/e-mail-backend.h> #include <mail/em-config.h> #include <mail/em-event.h> #include <mail/em-folder-tree.h> -#include <mail/mail-config.h> #include <mail/em-folder-selector.h> #include <e-gw-connection.h> #include <share-folder.h> @@ -118,7 +118,7 @@ install_folder_response (EMFolderSelector *emfs, gint response, gpointer *data) camel_folder_summary_touch (folder->summary); /* camel_object_trigger_event (CAMEL_OBJECT (folder), "folder_changed", changes); */ uri = camel_url_to_string (((CamelService *) store)->url, CAMEL_URL_HIDE_ALL); - account = mail_config_get_account_by_source_url (uri); + account = e_get_account_by_source_url (uri); uri = account->source->url; em_folder_tree_model_remove_store (model, store); provider = camel_provider_get (uri, NULL); diff --git a/plugins/groupwise-features/proxy-login.c b/plugins/groupwise-features/proxy-login.c index 74b67f0ef5..e40771295b 100644 --- a/plugins/groupwise-features/proxy-login.c +++ b/plugins/groupwise-features/proxy-login.c @@ -32,7 +32,6 @@ #include <mail/em-folder-tree.h> #include <mail/e-mail-backend.h> #include <mail/e-mail-store.h> -#include <mail/mail-config.h> #include <mail/em-folder-selector.h> #include <mail/em-account-editor.h> #include <mail/mail-ops.h> @@ -524,7 +523,7 @@ gw_proxy_login_cb (GtkAction *action, EShellView *shell_view) } /* This pops-up the password dialog in case the User has forgot-passwords explicitly */ - cnc = proxy_login_get_cnc (mail_config_get_account_by_source_url (uri), NULL); + cnc = proxy_login_get_cnc (e_get_account_by_source_url (uri), NULL); if (cnc) g_object_unref (cnc); @@ -535,7 +534,7 @@ gw_proxy_login_cb (GtkAction *action, EShellView *shell_view) e_load_ui_builder_definition (priv->builder, "proxy-login-dialog.ui"); priv->main = e_builder_get_widget (priv->builder, "proxy_login_dialog"); - pld->account = mail_config_get_account_by_source_url (uri); + pld->account = e_get_account_by_source_url (uri); priv->tree = GTK_TREE_VIEW (e_builder_get_widget (priv->builder, "proxy_login_treeview")); priv->store = gtk_tree_store_new (2, GDK_TYPE_PIXBUF, diff --git a/plugins/groupwise-features/share-folder-common.c b/plugins/groupwise-features/share-folder-common.c index 10b0c4c622..61cace9565 100644 --- a/plugins/groupwise-features/share-folder-common.c +++ b/plugins/groupwise-features/share-folder-common.c @@ -29,13 +29,13 @@ #include <gtk/gtk.h> #include <glib/gi18n.h> #include <e-util/e-config.h> +#include <e-util/e-account-utils.h> #include <mail/e-mail-backend.h> #include <mail/em-config.h> #include <mail/em-folder-properties.h> #include <mail/em-folder-tree.h> #include <mail/em-folder-selector.h> #include <mail/mail-mt.h> -#include <mail/mail-config.h> #include <mail/mail-vfolder.h> #include <mail/em-utils.h> #include <mail/em-vfolder-rule.h> @@ -71,7 +71,7 @@ refresh_folder_tree (EMFolderTreeModel *model, CamelStore *store) CamelProvider *provider; uri = camel_url_to_string (((CamelService *) store)->url, CAMEL_URL_HIDE_ALL); - account = mail_config_get_account_by_source_url (uri); + account = e_get_account_by_source_url (uri); if (!account) { return; } |