Add an EmpathyIndividualView::show-untrusted property
[empathy-mirror.git] / tests / interactive / test-empathy-account-chooser.c
blobd2ce7ccbcb9ed3c806abd68762cfd3dccb0ef312
1 #include <config.h>
3 #include <gtk/gtk.h>
5 #include <libempathy-gtk/empathy-ui-utils.h>
6 #include <libempathy-gtk/empathy-account-chooser.h>
8 static gboolean
9 filter_func (TpAccount *account,
10 gpointer user_data)
12 g_assert (TP_IS_ACCOUNT (account));
13 return TRUE;
16 int
17 main (int argc,
18 char **argv)
20 GtkWidget *window, *c;
22 gtk_init (&argc, &argv);
23 empathy_gtk_init ();
25 window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
26 c = empathy_account_chooser_new ();
28 empathy_account_chooser_set_has_all_option (EMPATHY_ACCOUNT_CHOOSER (c),
29 TRUE);
31 empathy_account_chooser_set_filter (EMPATHY_ACCOUNT_CHOOSER (c),
32 filter_func, NULL);
34 gtk_container_add (GTK_CONTAINER (window), c);
36 /* gtk_window_set_default_size (GTK_WINDOW (window), 150, -1);*/
37 gtk_widget_show_all (window);
39 g_signal_connect_swapped (window, "destroy",
40 G_CALLBACK (gtk_main_quit), NULL);
42 gtk_main ();
44 return 0;