Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Return provider name as DisplayName instead of account name
This is based on our stack currently using account name for other
details; it may be reverted in the future. Currently, provider name
is the best choice for the user-visible name of an account.
  • Loading branch information
John Brooks committed Feb 21, 2013
1 parent 4ee5233 commit f260803
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mcp-account-manager-uoa/mcp-account-manager-uoa.c
Expand Up @@ -26,6 +26,7 @@
#include <libaccounts-glib/ag-manager.h>
#include <libaccounts-glib/ag-service.h>
#include <libaccounts-glib/ag-auth-data.h>
#include <libaccounts-glib/ag-provider.h>

#include <libsignon-glib/signon-identity.h>

Expand Down Expand Up @@ -649,8 +650,10 @@ account_manager_uoa_get (const McpAccountStorage *storage,

if (key == NULL || !tp_strdiff (key, "DisplayName"))
{
AgProvider *provider = ag_manager_get_provider (self->priv->manager, ag_account_get_provider_name (account));
mcp_account_manager_set_value (am, account_name, "DisplayName",
ag_account_get_display_name (account));
ag_provider_get_display_name (provider));
ag_provider_unref(provider);
handled = TRUE;
}

Expand Down

0 comments on commit f260803

Please sign in to comment.