aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-empathy-protocol-chooser.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-06 18:29:55 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-06 18:29:55 +0800
commit0ddbfabe32f0d02a63a21fca5bfb015f4e56bf97 (patch)
treed892e960ddb721aae6f4a56ec1831a50f9868d00 /tests/test-empathy-protocol-chooser.c
parenteb9dc0cc2b90d53b87b52e13122f760d291d211e (diff)
downloadgsoc2013-empathy-0ddbfabe32f0d02a63a21fca5bfb015f4e56bf97.tar
gsoc2013-empathy-0ddbfabe32f0d02a63a21fca5bfb015f4e56bf97.tar.gz
gsoc2013-empathy-0ddbfabe32f0d02a63a21fca5bfb015f4e56bf97.tar.bz2
gsoc2013-empathy-0ddbfabe32f0d02a63a21fca5bfb015f4e56bf97.tar.lz
gsoc2013-empathy-0ddbfabe32f0d02a63a21fca5bfb015f4e56bf97.tar.xz
gsoc2013-empathy-0ddbfabe32f0d02a63a21fca5bfb015f4e56bf97.tar.zst
gsoc2013-empathy-0ddbfabe32f0d02a63a21fca5bfb015f4e56bf97.zip
Transform profile chooser into a protocol chooser
Diffstat (limited to 'tests/test-empathy-protocol-chooser.c')
-rw-r--r--tests/test-empathy-protocol-chooser.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/test-empathy-protocol-chooser.c b/tests/test-empathy-protocol-chooser.c
new file mode 100644
index 000000000..07b1c70e1
--- /dev/null
+++ b/tests/test-empathy-protocol-chooser.c
@@ -0,0 +1,31 @@
+#include <config.h>
+
+#include <gtk/gtk.h>
+
+#include <libempathy-gtk/empathy-ui-utils.h>
+#include <libempathy-gtk/empathy-protocol-chooser.h>
+
+int
+main (int argc,
+ char **argv)
+{
+ GtkWidget *window;
+ GtkWidget *chooser;
+
+ gtk_init (&argc, &argv);
+ empathy_gtk_init ();
+
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ chooser = empathy_protocol_chooser_new ();
+ gtk_container_add (GTK_CONTAINER (window), chooser);
+
+ /* gtk_window_set_default_size (GTK_WINDOW (window), 150, -1);*/
+ gtk_widget_show_all (window);
+
+ g_signal_connect_swapped (window, "destroy",
+ G_CALLBACK (gtk_main_quit), NULL);
+
+ gtk_main ();
+
+ return 0;
+}