[empathy] Ensure all persona tables are removed from EmpathyIndividualWidget



commit 900b09f4b5f9f51383519fa487079ce3124a38ae
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Sep 1 12:59:03 2010 +0100

    Ensure all persona tables are removed from EmpathyIndividualWidget
    
    In the case that EmpathyIndividualWidget is going from showing Personas to
    showing an Individual table, ensure that all persona tables are removed from
    the widget, including those for Personas who're being removed from the
    Individual. Closes: bgo#628481

 libempathy-gtk/empathy-individual-widget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 7e4be22..40ece1e 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -1676,6 +1676,8 @@ personas_changed_cb (FolksIndividual *individual,
       /* Remove all Personas */
       for (l = personas; l != NULL; l = l->next)
         remove_persona (self, FOLKS_PERSONA (l->data));
+      for (l = removed; l != NULL; l = l->next)
+        remove_persona (self, FOLKS_PERSONA (l->data));
 
       /* Set up the Individual table instead */
       individual_table_set_up (self);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]