aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-28 18:05:33 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-28 19:25:17 +0800
commit3657e2642f635deca2e10695bba0dd8894613d68 (patch)
treebeadcbc0717cfe807fdff5f4e46aabb57ae3a15a /libempathy-gtk
parent837375ce5a897ede2f219957eb9b9b4a4eaee6c8 (diff)
downloadgsoc2013-empathy-3657e2642f635deca2e10695bba0dd8894613d68.tar
gsoc2013-empathy-3657e2642f635deca2e10695bba0dd8894613d68.tar.gz
gsoc2013-empathy-3657e2642f635deca2e10695bba0dd8894613d68.tar.bz2
gsoc2013-empathy-3657e2642f635deca2e10695bba0dd8894613d68.tar.lz
gsoc2013-empathy-3657e2642f635deca2e10695bba0dd8894613d68.tar.xz
gsoc2013-empathy-3657e2642f635deca2e10695bba0dd8894613d68.tar.zst
gsoc2013-empathy-3657e2642f635deca2e10695bba0dd8894613d68.zip
individual_menu_add_personas(): restore the persona.individual after creating single_individual
https://bugzilla.gnome.org/show_bug.cgi?id=684971
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index e59748129..b85f76d9b 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -163,6 +163,11 @@ individual_menu_add_personas (GtkMenuShell *menu,
single_individual = empathy_create_individual_from_tp_contact (
tp_contact);
+ /* Pretty hacky. Creating single_individual had a side effect to change
+ * persona.individual from individual to single_individual which is not
+ * what we want so we set it back. See bgo#684971 for details. */
+ g_object_set (persona, "individual", individual, NULL);
+
store = folks_persona_get_store (FOLKS_PERSONA (persona));
account = folks_persona_store_get_display_name (store);