aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-03 17:23:01 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-03 17:23:01 +0800
commit67308bd569a5a3884225b65b8514725fdf8f3117 (patch)
tree1e4b3d6d150ca2709b1a3730582d6ee8ecbc889c /libempathy-gtk
parent37ae70ceec9ead69d1584067ed9a489f309d1961 (diff)
downloadgsoc2013-empathy-67308bd569a5a3884225b65b8514725fdf8f3117.tar
gsoc2013-empathy-67308bd569a5a3884225b65b8514725fdf8f3117.tar.gz
gsoc2013-empathy-67308bd569a5a3884225b65b8514725fdf8f3117.tar.bz2
gsoc2013-empathy-67308bd569a5a3884225b65b8514725fdf8f3117.tar.lz
gsoc2013-empathy-67308bd569a5a3884225b65b8514725fdf8f3117.tar.xz
gsoc2013-empathy-67308bd569a5a3884225b65b8514725fdf8f3117.tar.zst
gsoc2013-empathy-67308bd569a5a3884225b65b8514725fdf8f3117.zip
accounts-dialog: set display-name before creating the account
This saves us a D-Bus call.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 8862c3ba4..f2d4bbe4c 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -778,6 +778,19 @@ account_widget_apply_clicked_cb (GtkWidget *button,
empathy_account_settings_set_boolean (priv->settings, "register", !reuse);
}
+ if (priv->creating_account)
+ {
+ gchar *display_name;
+
+ /* set default display name */
+ display_name = empathy_account_widget_get_default_display_name (self);
+
+ empathy_account_settings_set_display_name_async (priv->settings,
+ display_name, NULL, NULL);
+
+ g_free (display_name);
+ }
+
/* workaround to keep widget alive during async call */
g_object_ref (self);
empathy_account_settings_apply_async (priv->settings,