~bcurtiswx/ubuntu/precise/empathy/3.4.2.3-0ubuntu1

« back to all changes in this revision

Viewing changes to libempathy-gtk/empathy-groups-widget.c

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2011-12-21 15:12:56 UTC
  • mfrom: (1.1.84)
  • Revision ID: package-import@ubuntu.com-20111221151256-9b1pny75wphfmqd6
Tags: 3.3.3-0ubuntu1
* New upstream version
  - Require folks >= 0.6.6 (LP: #907501)
* debian/control
  - bump build depends for folks to >= 0.6.6
* debian/watch
  - use the .xz file

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <folks/folks.h>
33
33
 
34
34
#include <libempathy/empathy-utils.h>
35
 
#include <libempathy/empathy-contact-manager.h>
 
35
#include <libempathy/empathy-connection-aggregator.h>
36
36
 
37
37
#include "empathy-groups-widget.h"
38
38
#include "empathy-ui-utils.h"
150
150
populate_data (EmpathyGroupsWidget *self)
151
151
{
152
152
  EmpathyGroupsWidgetPriv *priv = GET_PRIV (self);
153
 
  EmpathyContactManager *manager;
 
153
  EmpathyConnectionAggregator *aggregator;
154
154
  GtkTreeIter iter;
155
155
  GeeSet *member_groups;
156
156
  GList *all_groups, *l;
158
158
  /* Remove the old groups */
159
159
  gtk_list_store_clear (priv->group_store);
160
160
 
161
 
  /* FIXME: We have to get the whole group list from EmpathyContactManager, as
162
 
   * libfolks hasn't grown API to get the whole group list yet. (bgo#627398) */
163
 
  manager = empathy_contact_manager_dup_singleton ();
164
 
  all_groups = empathy_contact_list_get_all_groups (
165
 
      EMPATHY_CONTACT_LIST (manager));
166
 
  g_object_unref (manager);
 
161
  /* FIXME: We have to get the whole group list from
 
162
   * EmpathyConnectionAggregator, as libfolks hasn't grown API to get the whole
 
163
   * group list yet. (bgo#627398) */
 
164
  aggregator = empathy_connection_aggregator_dup_singleton ();
 
165
  all_groups = empathy_connection_aggregator_get_all_groups (aggregator);
 
166
  g_object_unref (aggregator);
167
167
 
168
168
  /* Get the list of groups that this #FolksGroupDetails is currently in */
169
169
  member_groups = folks_group_details_get_groups (priv->group_details);