summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurent Contzen <lcontzen@gmail.com>2012-08-09 08:44:19 +0200
committerLaurent Contzen <lcontzen@gmail.com>2012-08-09 12:51:41 +0200
commitecdeb95cfa385ab0f8b7595a676dc22aecc7a49e (patch)
treeecb967e9624a606db3d23aaf4c7809507870e166 /tests
parent20931fb9fe11ca2b5e1510d14acbd1ea4c886ae5 (diff)
Added filtering function to model-aggregator
Diffstat (limited to 'tests')
-rw-r--r--tests/interactive/test-empathy-roster-model-aggregator.c11
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);