aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-groups-widget.c
diff options
context:
space:
mode:
authorTravis Reitter <travis.reitter@collabora.co.uk>2011-05-03 04:17:23 +0800
committerTravis Reitter <travis.reitter@collabora.co.uk>2011-06-07 00:30:52 +0800
commit0e80ea37d08505e886ef61b03fbb606a8ea3ac36 (patch)
treeba22d7b555b6b6655a9f28f45e1e143a12022d82 /libempathy-gtk/empathy-groups-widget.c
parenta8833fd63b3bc3856cbd885158cba6b8fca1225a (diff)
downloadgsoc2013-empathy-0e80ea37d08505e886ef61b03fbb606a8ea3ac36.tar
gsoc2013-empathy-0e80ea37d08505e886ef61b03fbb606a8ea3ac36.tar.gz
gsoc2013-empathy-0e80ea37d08505e886ef61b03fbb606a8ea3ac36.tar.bz2
gsoc2013-empathy-0e80ea37d08505e886ef61b03fbb606a8ea3ac36.tar.lz
gsoc2013-empathy-0e80ea37d08505e886ef61b03fbb606a8ea3ac36.tar.xz
gsoc2013-empathy-0e80ea37d08505e886ef61b03fbb606a8ea3ac36.tar.zst
gsoc2013-empathy-0e80ea37d08505e886ef61b03fbb606a8ea3ac36.zip
Adapt to API change in folks_group_details_get_groups().
Helps: bgo#648822 - Port Empathy to Folks 0.5.1
Diffstat (limited to 'libempathy-gtk/empathy-groups-widget.c')
-rw-r--r--libempathy-gtk/empathy-groups-widget.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-groups-widget.c b/libempathy-gtk/empathy-groups-widget.c
index 68e7efd09..33e4d8d5a 100644
--- a/libempathy-gtk/empathy-groups-widget.c
+++ b/libempathy-gtk/empathy-groups-widget.c
@@ -152,7 +152,7 @@ populate_data (EmpathyGroupsWidget *self)
EmpathyGroupsWidgetPriv *priv = GET_PRIV (self);
EmpathyContactManager *manager;
GtkTreeIter iter;
- GHashTable *my_groups;
+ GeeSet *member_groups;
GList *all_groups, *l;
/* Remove the old groups */
@@ -166,14 +166,15 @@ populate_data (EmpathyGroupsWidget *self)
g_object_unref (manager);
/* Get the list of groups that this #FolksGroupDetails is currently in */
- my_groups = folks_group_details_get_groups (priv->group_details);
+ member_groups = folks_group_details_get_groups (priv->group_details);
for (l = all_groups; l != NULL; l = l->next)
{
const gchar *group_str = l->data;
gboolean enabled;
- enabled = GPOINTER_TO_UINT (g_hash_table_lookup (my_groups, group_str));
+ enabled = gee_collection_contains (GEE_COLLECTION (member_groups),
+ group_str);
gtk_list_store_append (priv->group_store, &iter);
gtk_list_store_set (priv->group_store, &iter,