aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-empathy-profile-chooser.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-05 06:03:01 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-05 20:04:10 +0800
commitd3dc61867d99d3f9fa50e204fba66943d955ecd1 (patch)
tree83a76d6459d1779f3243730594d4397592487735 /tests/test-empathy-profile-chooser.c
parent3d1f8a776ca187ee211cdd2361b0aab79def6834 (diff)
downloadgsoc2013-empathy-d3dc61867d99d3f9fa50e204fba66943d955ecd1.tar
gsoc2013-empathy-d3dc61867d99d3f9fa50e204fba66943d955ecd1.tar.gz
gsoc2013-empathy-d3dc61867d99d3f9fa50e204fba66943d955ecd1.tar.bz2
gsoc2013-empathy-d3dc61867d99d3f9fa50e204fba66943d955ecd1.tar.lz
gsoc2013-empathy-d3dc61867d99d3f9fa50e204fba66943d955ecd1.tar.xz
gsoc2013-empathy-d3dc61867d99d3f9fa50e204fba66943d955ecd1.tar.zst
gsoc2013-empathy-d3dc61867d99d3f9fa50e204fba66943d955ecd1.zip
Add test-empathy-profile-chooser.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'tests/test-empathy-profile-chooser.c')
-rw-r--r--tests/test-empathy-profile-chooser.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/test-empathy-profile-chooser.c b/tests/test-empathy-profile-chooser.c
new file mode 100644
index 000000000..9078bbde4
--- /dev/null
+++ b/tests/test-empathy-profile-chooser.c
@@ -0,0 +1,31 @@
+#include <config.h>
+
+#include <gtk/gtk.h>
+
+#include <libempathy-gtk/empathy-ui-utils.h>
+#include <libempathy-gtk/empathy-profile-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_profile_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;
+}