aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLaurent Bigonville <bigon@bigon.be>2009-11-18 23:57:24 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-19 00:06:14 +0800
commitdb67069547cedf5728d0015b1c207da6bd5445f0 (patch)
treeddc8d23ab8a793c02f6cdc91f394d74983af9159 /tests
parentd2da82d9684bd97038c95be1cef8cedf07e6df32 (diff)
downloadgsoc2013-empathy-db67069547cedf5728d0015b1c207da6bd5445f0.tar
gsoc2013-empathy-db67069547cedf5728d0015b1c207da6bd5445f0.tar.gz
gsoc2013-empathy-db67069547cedf5728d0015b1c207da6bd5445f0.tar.bz2
gsoc2013-empathy-db67069547cedf5728d0015b1c207da6bd5445f0.tar.lz
gsoc2013-empathy-db67069547cedf5728d0015b1c207da6bd5445f0.tar.xz
gsoc2013-empathy-db67069547cedf5728d0015b1c207da6bd5445f0.tar.zst
gsoc2013-empathy-db67069547cedf5728d0015b1c207da6bd5445f0.zip
Move empathy-log to tests/interactive and don't install it anymore
Diffstat (limited to 'tests')
-rw-r--r--tests/interactive/.gitignore1
-rw-r--r--tests/interactive/Makefile.am2
-rw-r--r--tests/interactive/empathy-logs.c60
3 files changed, 63 insertions, 0 deletions
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 <xclaesse@gmail.com>
+ */
+
+#include <config.h>
+#include <stdlib.h>
+#include <glib.h>
+#include <gtk/gtk.h>
+
+#include <libempathy/empathy-debug.h>
+#include <libempathy-gtk/empathy-log-window.h>
+#include <libempathy-gtk/empathy-ui-utils.h>
+
+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;
+}
+