aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-11-29 21:02:40 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-11-29 21:24:17 +0800
commit4532530cec308a87223f46cd3724c1868849937f (patch)
treea7a4edd57b3c426a40f83c8b29adfdd06e20a1fd /libempathy-gtk
parent97f3aec6da2eed048d878611667381a773980e59 (diff)
downloadgsoc2013-empathy-4532530cec308a87223f46cd3724c1868849937f.tar
gsoc2013-empathy-4532530cec308a87223f46cd3724c1868849937f.tar.gz
gsoc2013-empathy-4532530cec308a87223f46cd3724c1868849937f.tar.bz2
gsoc2013-empathy-4532530cec308a87223f46cd3724c1868849937f.tar.lz
gsoc2013-empathy-4532530cec308a87223f46cd3724c1868849937f.tar.xz
gsoc2013-empathy-4532530cec308a87223f46cd3724c1868849937f.tar.zst
gsoc2013-empathy-4532530cec308a87223f46cd3724c1868849937f.zip
groups-widget: use empathy_connection_aggregator_get_all_groups()
We have to prepare the contact groups feature and ensure that the singleton is still alive. The 'empathy' process is the only one allowing user to change contact groups so we just have to do it there. https://bugzilla.gnome.org/show_bug.cgi?id=665121
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-groups-widget.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libempathy-gtk/empathy-groups-widget.c b/libempathy-gtk/empathy-groups-widget.c
index fa092b6d6..efb58fa99 100644
--- a/libempathy-gtk/empathy-groups-widget.c
+++ b/libempathy-gtk/empathy-groups-widget.c
@@ -32,7 +32,7 @@
#include <folks/folks.h>
#include <libempathy/empathy-utils.h>
-#include <libempathy/empathy-contact-manager.h>
+#include <libempathy/empathy-connection-aggregator.h>
#include "empathy-groups-widget.h"
#include "empathy-ui-utils.h"
@@ -150,7 +150,7 @@ static void
populate_data (EmpathyGroupsWidget *self)
{
EmpathyGroupsWidgetPriv *priv = GET_PRIV (self);
- EmpathyContactManager *manager;
+ EmpathyConnectionAggregator *aggregator;
GtkTreeIter iter;
GeeSet *member_groups;
GList *all_groups, *l;
@@ -158,12 +158,12 @@ populate_data (EmpathyGroupsWidget *self)
/* Remove the old groups */
gtk_list_store_clear (priv->group_store);
- /* FIXME: We have to get the whole group list from EmpathyContactManager, as
- * libfolks hasn't grown API to get the whole group list yet. (bgo#627398) */
- manager = empathy_contact_manager_dup_singleton ();
- all_groups = empathy_contact_list_get_all_groups (
- EMPATHY_CONTACT_LIST (manager));
- g_object_unref (manager);
+ /* FIXME: We have to get the whole group list from
+ * EmpathyConnectionAggregator, as libfolks hasn't grown API to get the whole
+ * group list yet. (bgo#627398) */
+ aggregator = empathy_connection_aggregator_dup_singleton ();
+ all_groups = empathy_connection_aggregator_get_all_groups (aggregator);
+ g_object_unref (aggregator);
/* Get the list of groups that this #FolksGroupDetails is currently in */
member_groups = folks_group_details_get_groups (priv->group_details);