diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-13 01:19:51 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-13 18:21:33 +0800 |
commit | eac0b572a73559e88be8da3d62f15cf26d3bb1e1 (patch) | |
tree | 109e8fd7420d98323d85457d2ba2039728fa4d64 | |
parent | 2969485fc42fed028d1e8506534469b97cd5a283 (diff) | |
download | gsoc2013-empathy-eac0b572a73559e88be8da3d62f15cf26d3bb1e1.tar gsoc2013-empathy-eac0b572a73559e88be8da3d62f15cf26d3bb1e1.tar.gz gsoc2013-empathy-eac0b572a73559e88be8da3d62f15cf26d3bb1e1.tar.bz2 gsoc2013-empathy-eac0b572a73559e88be8da3d62f15cf26d3bb1e1.tar.lz gsoc2013-empathy-eac0b572a73559e88be8da3d62f15cf26d3bb1e1.tar.xz gsoc2013-empathy-eac0b572a73559e88be8da3d62f15cf26d3bb1e1.tar.zst gsoc2013-empathy-eac0b572a73559e88be8da3d62f15cf26d3bb1e1.zip |
account-assistant: set default display name to newly created accounts (#600705)
-rw-r--r-- | src/empathy-account-assistant.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c index 08cf025d3..6c43f447d 100644 --- a/src/empathy-account-assistant.c +++ b/src/empathy-account-assistant.c @@ -250,9 +250,19 @@ account_assistant_apply_account_cb (GObject *source, EmpathyAccountAssistantPriv *priv = GET_PRIV (self); EmpathyAccountSettings *settings = EMPATHY_ACCOUNT_SETTINGS (source); TpAccount *account; + gchar *display_name; 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; if (error != NULL) |