diff options
author | Laurent Contzen <lcontzen@gmail.com> | 2012-08-09 14:44:19 +0800 |
---|---|---|
committer | Laurent Contzen <lcontzen@gmail.com> | 2012-08-09 18:51:41 +0800 |
commit | ecdeb95cfa385ab0f8b7595a676dc22aecc7a49e (patch) | |
tree | ecb967e9624a606db3d23aaf4c7809507870e166 /tests | |
parent | 20931fb9fe11ca2b5e1510d14acbd1ea4c886ae5 (diff) | |
download | gsoc2013-empathy-ecdeb95cfa385ab0f8b7595a676dc22aecc7a49e.tar gsoc2013-empathy-ecdeb95cfa385ab0f8b7595a676dc22aecc7a49e.tar.gz gsoc2013-empathy-ecdeb95cfa385ab0f8b7595a676dc22aecc7a49e.tar.bz2 gsoc2013-empathy-ecdeb95cfa385ab0f8b7595a676dc22aecc7a49e.tar.lz gsoc2013-empathy-ecdeb95cfa385ab0f8b7595a676dc22aecc7a49e.tar.xz gsoc2013-empathy-ecdeb95cfa385ab0f8b7595a676dc22aecc7a49e.tar.zst gsoc2013-empathy-ecdeb95cfa385ab0f8b7595a676dc22aecc7a49e.zip |
Added filtering function to model-aggregator
Diffstat (limited to 'tests')
-rw-r--r-- | tests/interactive/test-empathy-roster-model-aggregator.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/interactive/test-empathy-roster-model-aggregator.c b/tests/interactive/test-empathy-roster-model-aggregator.c index a3df3f533..9d2467ed1 100644 --- a/tests/interactive/test-empathy-roster-model-aggregator.c +++ b/tests/interactive/test-empathy-roster-model-aggregator.c @@ -79,6 +79,14 @@ empty_cb (EmpathyRosterView *view, g_print ("view is no longer empty\n"); } +static gboolean +filter (EmpathyRosterModel *model, + FolksIndividual *individual, + gpointer user_data) +{ + return TRUE; +} + int main (int argc, char **argv) @@ -106,7 +114,8 @@ main (int argc, box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); - model = EMPATHY_ROSTER_MODEL (empathy_roster_model_aggregator_new ()); + model = EMPATHY_ROSTER_MODEL (empathy_roster_model_aggregator_new ( + filter, NULL)); view = empathy_roster_view_new (model); g_object_unref (model); |