diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-04-23 23:34:38 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-04-23 23:34:38 +0800 |
commit | 56c5e3c45349484a703d9df03d3969edde121a1e (patch) | |
tree | e67502a04f0308381f5b6af3a8e83c285cf7c1dd /libempathy-gtk | |
parent | a62d279e0733e80645981c31f911d938a0bbc1b0 (diff) | |
download | gsoc2013-empathy-56c5e3c45349484a703d9df03d3969edde121a1e.tar gsoc2013-empathy-56c5e3c45349484a703d9df03d3969edde121a1e.tar.gz gsoc2013-empathy-56c5e3c45349484a703d9df03d3969edde121a1e.tar.bz2 gsoc2013-empathy-56c5e3c45349484a703d9df03d3969edde121a1e.tar.lz gsoc2013-empathy-56c5e3c45349484a703d9df03d3969edde121a1e.tar.xz gsoc2013-empathy-56c5e3c45349484a703d9df03d3969edde121a1e.tar.zst gsoc2013-empathy-56c5e3c45349484a703d9df03d3969edde121a1e.zip |
empathy-contact-widget: call contact_widget_change_contact after widget's setup. Fixes #579971
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index c78aafeaa..0821066fa 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -234,7 +234,11 @@ empathy_contact_widget_new (EmpathyContact *contact, contact_widget_client_setup (information); if (contact != NULL) - contact_widget_set_contact (information, contact); + contact_widget_set_contact (information, contact); + + else if (information->flags & EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT || + information->flags & EMPATHY_CONTACT_WIDGET_EDIT_ID) + contact_widget_change_contact (information); return empathy_builder_unref_and_keep_widget (gui, information->vbox_contact_widget); @@ -561,7 +565,6 @@ contact_widget_contact_setup (EmpathyContactWidget *information) { information->widget_account = empathy_account_chooser_new (); - contact_widget_change_contact (information); g_signal_connect_swapped (information->widget_account, "changed", G_CALLBACK (contact_widget_change_contact), information); |