diff options
author | Travis Reitter <treitter@gmail.com> | 2010-07-27 00:49:35 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-27 18:51:15 +0800 |
commit | a976f8193404e5c89d0a9a9051f629057e200f9b (patch) | |
tree | 12f706dae59401c3950c02a51444072637f9b46d /libempathy/empathy-individual-manager.c | |
parent | e854ea2dad6350cc1787f9ac9ee1012c7c2ebd77 (diff) | |
download | gsoc2013-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-individual-manager.c')
-rw-r--r-- | libempathy/empathy-individual-manager.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c index 32442f94c..55541b299 100644 --- a/libempathy/empathy-individual-manager.c +++ b/libempathy/empathy-individual-manager.c @@ -368,11 +368,28 @@ empathy_individual_manager_remove (EmpathyIndividualManager *self, } 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); + } +} + +static void remove_group_cb (const gchar *id, FolksIndividual *individual, const gchar *group) { - folks_groups_change_group (FOLKS_GROUPS (individual), group, FALSE); + folks_groups_change_group (FOLKS_GROUPS (individual), group, FALSE, + groups_change_group_cb, NULL); } void |