diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-07-08 00:01:59 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-22 04:25:19 +0800 |
commit | e922ae799989e073cb6649578555ad686bcb0fc8 (patch) | |
tree | cf32a42153a0359bedd04618be8be2383b2ca276 /libempathy-gtk/empathy-contact-widget.c | |
parent | d64a31579c0cdaa7013f5165f5111d57feb9b92e (diff) | |
download | gsoc2013-empathy-e922ae799989e073cb6649578555ad686bcb0fc8.tar gsoc2013-empathy-e922ae799989e073cb6649578555ad686bcb0fc8.tar.gz gsoc2013-empathy-e922ae799989e073cb6649578555ad686bcb0fc8.tar.bz2 gsoc2013-empathy-e922ae799989e073cb6649578555ad686bcb0fc8.tar.lz gsoc2013-empathy-e922ae799989e073cb6649578555ad686bcb0fc8.tar.xz gsoc2013-empathy-e922ae799989e073cb6649578555ad686bcb0fc8.tar.zst gsoc2013-empathy-e922ae799989e073cb6649578555ad686bcb0fc8.zip |
Re-enable setting of groups for newly-added contacts
Changes to groups made while adding a contact need to be cached up until the
contact's FolksPersona is set, when they can be flushed to the libfolks
backend.
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 77d22c915..4ff25b974 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -579,12 +579,7 @@ contact_widget_cell_toggled (GtkCellRendererToggle *cell, if (group != NULL) { - FolksPersona *persona = empathy_contact_get_persona ( - information->contact); - - if (persona != NULL && FOLKS_IS_GROUPS (persona)) - folks_groups_change_group (FOLKS_GROUPS (persona), group, !was_enabled); - + empathy_contact_change_group (information->contact, group, !was_enabled); g_free (group); } } @@ -791,7 +786,6 @@ contact_widget_button_group_clicked_cb (GtkButton *button, GtkTreeView *view; GtkListStore *store; GtkTreeIter iter; - FolksPersona *persona; const gchar *group; view = GTK_TREE_VIEW (information->treeview_groups); @@ -805,10 +799,7 @@ contact_widget_button_group_clicked_cb (GtkButton *button, COL_ENABLED, TRUE, -1); - persona = empathy_contact_get_persona (information->contact); - - if (persona != NULL && FOLKS_IS_GROUPS (persona)) - folks_groups_change_group (FOLKS_GROUPS (persona), group, TRUE); + empathy_contact_change_group (information->contact, group, TRUE); } static void |