aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-empathy-presence-chooser.c
diff options
context:
space:
mode:
authorDavyd Madeley <davyd@madeley.id.au>2009-04-11 00:52:58 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-11 00:52:58 +0800
commit4b85d7c7119ee610902d0a7f0ca4bb4170d2cd0c (patch)
treef3ba6605298556223bb68f0bd56d825ca9064e3b /tests/test-empathy-presence-chooser.c
parent7488856fc14c27a9c71916f552bb98ff875d6413 (diff)
downloadgsoc2013-empathy-4b85d7c7119ee610902d0a7f0ca4bb4170d2cd0c.tar
gsoc2013-empathy-4b85d7c7119ee610902d0a7f0ca4bb4170d2cd0c.tar.gz
gsoc2013-empathy-4b85d7c7119ee610902d0a7f0ca4bb4170d2cd0c.tar.bz2
gsoc2013-empathy-4b85d7c7119ee610902d0a7f0ca4bb4170d2cd0c.tar.lz
gsoc2013-empathy-4b85d7c7119ee610902d0a7f0ca4bb4170d2cd0c.tar.xz
gsoc2013-empathy-4b85d7c7119ee610902d0a7f0ca4bb4170d2cd0c.tar.zst
gsoc2013-empathy-4b85d7c7119ee610902d0a7f0ca4bb4170d2cd0c.zip
Add a test program for the presence widget
From: Davyd Madeley <davyd@madeley.id.au> svn path=/trunk/; revision=2767
Diffstat (limited to 'tests/test-empathy-presence-chooser.c')
-rw-r--r--tests/test-empathy-presence-chooser.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/test-empathy-presence-chooser.c b/tests/test-empathy-presence-chooser.c
new file mode 100644
index 000000000..b4766c803
--- /dev/null
+++ b/tests/test-empathy-presence-chooser.c
@@ -0,0 +1,29 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+
+#include <config.h>
+
+#include <gtk/gtk.h>
+
+#include <libempathy-gtk/empathy-ui-utils.h>
+#include <libempathy-gtk/empathy-presence-chooser.h>
+
+int
+main (int argc, char **argv)
+{
+ gtk_init (&argc, &argv);
+ empathy_gtk_init ();
+
+ GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ GtkWidget *chooser = empathy_presence_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;
+}