Commit eac0b572 authored by Guillaume Desmottes's avatar Guillaume Desmottes

account-assistant: set default display name to newly created accounts (#600705)

parent 2969485f
...@@ -250,9 +250,19 @@ account_assistant_apply_account_cb (GObject *source, ...@@ -250,9 +250,19 @@ account_assistant_apply_account_cb (GObject *source,
EmpathyAccountAssistantPriv *priv = GET_PRIV (self); EmpathyAccountAssistantPriv *priv = GET_PRIV (self);
EmpathyAccountSettings *settings = EMPATHY_ACCOUNT_SETTINGS (source); EmpathyAccountSettings *settings = EMPATHY_ACCOUNT_SETTINGS (source);
TpAccount *account; TpAccount *account;
gchar *display_name;
empathy_account_settings_apply_finish (settings, result, &error); empathy_account_settings_apply_finish (settings, result, &error);
/* set default display name */
display_name = empathy_account_widget_get_default_display_name (
priv->current_widget_object);
empathy_account_settings_set_display_name_async (settings,
display_name, NULL, NULL);
g_free (display_name);
priv->is_creating = FALSE; priv->is_creating = FALSE;
if (error != NULL) if (error != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment