]> git.0d.be Git - empathy.git/commitdiff
Adjust empetit to test the contact selector filtering.
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 10 Apr 2009 16:56:06 +0000 (16:56 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 10 Apr 2009 16:56:06 +0000 (16:56 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=2806

tests/empetit.c

index 2c69d101dc1ac4d4165caafcffc31559a6a9e1d9..e2eb61f66eeaec3007cec65d5994e2bef9c08df4 100644 (file)
@@ -60,6 +60,9 @@ int main (int argc,
   manager = empathy_contact_manager_dup_singleton ();
   selector = empathy_contact_selector_new (EMPATHY_CONTACT_LIST (manager));
 
+  empathy_contact_selector_set_visible (EMPATHY_CONTACT_SELECTOR (selector),
+      (EmpathyContactSelectorFilterFunc) empathy_contact_can_send_files, NULL);
+
   vbox = gtk_vbox_new (FALSE, 2);
 
   gtk_box_pack_start (GTK_BOX (vbox), selector, FALSE, FALSE, 5);