summaryrefslogtreecommitdiff
path: root/test2.c
blob: b035dec2cb0adcc0d13dd56ee120461f49d12508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "tp-gtk-contact-selector.h"
#include "tp-gtk-roster-model.h"
#include "tp-gtk-roster-model-filter.h"

int
main (int argc, char **argv)
{
  gtk_init (&argc, &argv);

  GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  GtkWidget *selector = tp_gtk_contact_selector_new (NULL);

  gtk_container_add (GTK_CONTAINER (window), selector);
  gtk_widget_show_all (window);

  g_signal_connect_swapped (window, "destroy",
      G_CALLBACK (gtk_main_quit), NULL);

  gtk_main ();
}