From db67069547cedf5728d0015b1c207da6bd5445f0 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Wed, 18 Nov 2009 16:57:24 +0100 Subject: Move empathy-log to tests/interactive and don't install it anymore --- tests/interactive/.gitignore | 1 + tests/interactive/Makefile.am | 2 ++ tests/interactive/empathy-logs.c | 60 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 tests/interactive/empathy-logs.c (limited to 'tests/interactive') diff --git a/tests/interactive/.gitignore b/tests/interactive/.gitignore index f5c45764e..f6f87d8b4 100644 --- a/tests/interactive/.gitignore +++ b/tests/interactive/.gitignore @@ -1,4 +1,5 @@ contact-manager +empathy-logs contact-run-until-ready contact-run-until-ready-2 empetit diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am index a66f518e9..7770e768f 100644 --- a/tests/interactive/Makefile.am +++ b/tests/interactive/Makefile.am @@ -13,6 +13,7 @@ LDADD = \ noinst_PROGRAMS = \ contact-manager \ + empathy-logs \ empetit \ test-empathy-account-assistant \ test-empathy-presence-chooser \ @@ -20,6 +21,7 @@ noinst_PROGRAMS = \ test-empathy-protocol-chooser contact_manager_SOURCES = contact-manager.c +empathy_logs_SOURCES = empathy-logs.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 diff --git a/tests/interactive/empathy-logs.c b/tests/interactive/empathy-logs.c new file mode 100644 index 000000000..b9f38e0e7 --- /dev/null +++ b/tests/interactive/empathy-logs.c @@ -0,0 +1,60 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Copyright (C) 2008 Collabora Ltd. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * Authors: Xavier Claessens + */ + +#include +#include +#include +#include + +#include +#include +#include + +static void +destroy_cb (GtkWidget *dialog, + gpointer user_data) +{ + gtk_main_quit (); +} + +int +main (int argc, char *argv[]) +{ + GtkWidget *window; + + g_thread_init (NULL); + gtk_init (&argc, &argv); + empathy_gtk_init (); + g_set_application_name (PACKAGE_NAME); + gtk_window_set_default_icon_name ("empathy"); + + window = empathy_log_window_show (NULL, NULL, FALSE, NULL); + + g_signal_connect (window, "destroy", + G_CALLBACK (destroy_cb), + NULL); + + gtk_main (); + + return EXIT_SUCCESS; +} + -- cgit v1.2.3