diff options
author | Laurent Contzen <lcontzen@gmail.com> | 2012-07-04 21:29:41 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-07-23 22:11:28 +0800 |
commit | f7200ee068d8f959608521737872254f20c5ee55 (patch) | |
tree | 3d03ccdc2a77e51d5a0477f9664e30a534a42eb4 /libempathy-gtk/empathy-roster-model.c | |
parent | 5e102f002d353aceb687f92499635b86a0ba2d9b (diff) | |
download | gsoc2013-empathy-f7200ee068d8f959608521737872254f20c5ee55.tar gsoc2013-empathy-f7200ee068d8f959608521737872254f20c5ee55.tar.gz gsoc2013-empathy-f7200ee068d8f959608521737872254f20c5ee55.tar.bz2 gsoc2013-empathy-f7200ee068d8f959608521737872254f20c5ee55.tar.lz gsoc2013-empathy-f7200ee068d8f959608521737872254f20c5ee55.tar.xz gsoc2013-empathy-f7200ee068d8f959608521737872254f20c5ee55.tar.zst gsoc2013-empathy-f7200ee068d8f959608521737872254f20c5ee55.zip |
empathy-roster-model: New virtual method _get_groups_for_individual empathy-roster-model-manager: implemented _get_groups_for_individual empathy-roster-view.c: using _get_groups_for_individual
https://bugzilla.gnome.org/show_bug.cgi?id=680302
Diffstat (limited to 'libempathy-gtk/empathy-roster-model.c')
-rw-r--r-- | libempathy-gtk/empathy-roster-model.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-model.c b/libempathy-gtk/empathy-roster-model.c index eaceca5f7..d8671f279 100644 --- a/libempathy-gtk/empathy-roster-model.c +++ b/libempathy-gtk/empathy-roster-model.c @@ -102,3 +102,17 @@ empathy_roster_model_get_individuals (EmpathyRosterModel *self) return (* iface->get_individuals) (self); } + +GList * +empathy_roster_model_get_groups_for_individual (EmpathyRosterModel *self, + FolksIndividual *individual) +{ + EmpathyRosterModelInterface *iface; + + g_return_val_if_fail (EMPATHY_IS_ROSTER_MODEL (self), NULL); + + iface = EMPATHY_ROSTER_MODEL_GET_IFACE (self); + g_return_val_if_fail (iface->get_groups_for_individual != NULL, NULL); + + return (* iface->get_groups_for_individual) (self, individual); +} |