aboutsummaryrefslogtreecommitdiffstats
path: root/tests/interactive/test-empathy-protocol-chooser.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-27 23:22:55 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-29 17:38:31 +0800
commit4c2eb652ef61dd0f5ccac27e47f261417793aa73 (patch)
tree1883254e26335fdd02a70f3e18c120db4ea7fc5b /tests/interactive/test-empathy-protocol-chooser.c
parentfb12577193262ad17ef2fc49d2324a7b23458610 (diff)
downloadgsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar.gz
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar.bz2
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar.lz
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar.xz
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.tar.zst
gsoc2013-empathy-4c2eb652ef61dd0f5ccac27e47f261417793aa73.zip
move test app needing user interaction to interactive/
tests/ should be used only for automatic unit tests.
Diffstat (limited to 'tests/interactive/test-empathy-protocol-chooser.c')
-rw-r--r--tests/interactive/test-empathy-protocol-chooser.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/interactive/test-empathy-protocol-chooser.c b/tests/interactive/test-empathy-protocol-chooser.c
new file mode 100644
index 000000000..90b1797a3
--- /dev/null
+++ b/tests/interactive/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, *c;
+
+ gtk_init (&argc, &argv);
+ empathy_gtk_init ();
+
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ c = empathy_protocol_chooser_new ();
+
+ gtk_container_add (GTK_CONTAINER (window), c);
+
+ /* 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;
+}