From 0ddbfabe32f0d02a63a21fca5bfb015f4e56bf97 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 6 Jul 2009 11:29:55 +0100 Subject: Transform profile chooser into a protocol chooser --- tests/Makefile.am | 4 ++-- tests/test-empathy-profile-chooser.c | 31 ------------------------------- tests/test-empathy-protocol-chooser.c | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 tests/test-empathy-profile-chooser.c create mode 100644 tests/test-empathy-protocol-chooser.c (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am index f96650e79..7f99eaf36 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -27,13 +27,13 @@ noinst_PROGRAMS = \ empetit \ test-empathy-presence-chooser \ test-empathy-status-preset-dialog \ - test-empathy-profile-chooser + test-empathy-protocol-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 +test_empathy_protocol_chooser_SOURCES = test-empathy-protocol-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 deleted file mode 100644 index 9078bbde4..000000000 --- a/tests/test-empathy-profile-chooser.c +++ /dev/null @@ -1,31 +0,0 @@ -#include - -#include - -#include -#include - -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; -} 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 + +#include + +#include +#include + +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; +} -- cgit v1.2.3