aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-27 00:49:35 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-27 18:51:15 +0800
commita976f8193404e5c89d0a9a9051f629057e200f9b (patch)
tree12f706dae59401c3950c02a51444072637f9b46d /libempathy/empathy-contact.c
parente854ea2dad6350cc1787f9ac9ee1012c7c2ebd77 (diff)
downloadgsoc2013-empathy-a976f8193404e5c89d0a9a9051f629057e200f9b.tar
gsoc2013-empathy-a976f8193404e5c89d0a9a9051f629057e200f9b.tar.gz
gsoc2013-empathy-a976f8193404e5c89d0a9a9051f629057e200f9b.tar.bz2
gsoc2013-empathy-a976f8193404e5c89d0a9a9051f629057e200f9b.tar.lz
gsoc2013-empathy-a976f8193404e5c89d0a9a9051f629057e200f9b.tar.xz
gsoc2013-empathy-a976f8193404e5c89d0a9a9051f629057e200f9b.tar.zst
gsoc2013-empathy-a976f8193404e5c89d0a9a9051f629057e200f9b.zip
Adjust for signature change in folks_groups_change_group()
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 9a2bd8fb5..6842cde09 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -662,6 +662,22 @@ empathy_contact_set_alias (EmpathyContact *contact,
g_object_unref (contact);
}
+static void
+groups_change_group_cb (GObject *source,
+ GAsyncResult *result,
+ gpointer user_data)
+{
+ FolksGroups *groups = FOLKS_GROUPS (source);
+ GError *error = NULL;
+
+ folks_groups_change_group_finish (groups, result, &error);
+ if (error != NULL)
+ {
+ g_warning ("failed to change group: %s", error->message);
+ g_clear_error (&error);
+ }
+}
+
void
empathy_contact_change_group (EmpathyContact *contact, const gchar *group,
gboolean is_member)
@@ -679,7 +695,8 @@ empathy_contact_change_group (EmpathyContact *contact, const gchar *group,
if (persona != NULL)
{
if (FOLKS_IS_GROUPS (persona))
- folks_groups_change_group (FOLKS_GROUPS (persona), group, is_member);
+ folks_groups_change_group (FOLKS_GROUPS (persona), group, is_member,
+ groups_change_group_cb, contact);
return;
}