[empathy: 1/12] Add test-empathy-profile-chooser.
- From: Jonny Lamb <jonnylamb src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy: 1/12] Add test-empathy-profile-chooser.
- Date: Sun, 7 Jun 2009 09:35:44 -0400 (EDT)
commit d3dc61867d99d3f9fa50e204fba66943d955ecd1
Author: Jonny Lamb <jonny lamb collabora co uk>
Date: Thu Jun 4 23:03:01 2009 +0100
Add test-empathy-profile-chooser.
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
tests/.gitignore | 1 +
tests/Makefile.am | 4 +++-
tests/test-empathy-profile-chooser.c | 31 +++++++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 1 deletions(-)
diff --git a/tests/.gitignore b/tests/.gitignore
index a37f3e5..eac7934 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -6,3 +6,4 @@ contact-run-until-ready-2
empetit
test-empathy-presence-chooser
test-empathy-status-preset-dialog
+test-empathy-profile-chooser
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7740d1f..f96650e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -26,12 +26,14 @@ noinst_PROGRAMS = \
contact-manager \
empetit \
test-empathy-presence-chooser \
- test-empathy-status-preset-dialog
+ test-empathy-status-preset-dialog \
+ test-empathy-profile-chooser
contact_manager_SOURCES = contact-manager.c
empetit_SOURCES = empetit.c
test_empathy_presence_chooser_SOURCES = test-empathy-presence-chooser.c
test_empathy_status_preset_dialog_SOURCES = test-empathy-status-preset-dialog.c
+test_empathy_profile_chooser_SOURCES = test-empathy-profile-chooser.c
check_PROGRAMS = check-main
TESTS = check-main
diff --git a/tests/test-empathy-profile-chooser.c b/tests/test-empathy-profile-chooser.c
new file mode 100644
index 0000000..9078bbd
--- /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;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]