summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2010-09-13 21:23:29 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2010-09-13 21:50:31 +0100
commite17c526c56ce5fe72ddd4ab3501d1779e564fbb6 (patch)
tree36c4bc2fc041ad0f772c805408b91632bc85e861
parent3aae65a96489779109dcff2df48c3d261420d3c8 (diff)
downloadtelepathy-mission-control-e17c526c56ce5fe72ddd4ab3501d1779e564fbb6.tar.gz
Use the McdStorage interface to find the plugin claiming ownership of an account
-rw-r--r--src/mcd-account.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mcd-account.c b/src/mcd-account.c
index 54d20782..9fc6fb3a 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -1665,15 +1665,15 @@ static McpAccountStorage *
get_storage_plugin (McdAccount *account)
{
McdAccountPrivate *priv = account->priv;
+ const gchar *account_name = mcd_account_get_unique_name (account);
if (priv->storage_plugin != NULL)
return priv->storage_plugin;
- priv->storage_plugin = mcd_account_manager_get_storage_plugin (
- priv->account_manager, account);
+ priv->storage_plugin = mcd_storage_get_plugin (priv->storage, account_name);
- if (priv->storage_plugin != NULL)
- g_object_ref (priv->storage_plugin);
+ if (priv->storage_plugin != NULL)
+ g_object_ref (priv->storage_plugin);
return priv->storage_plugin;
}