]> git.0d.be Git - empathy.git/blob - tests/interactive/empathy-logs.c
empathy-logs: port to TP coding style
[empathy.git] / tests / interactive / empathy-logs.c
1 /*
2  * Copyright (C) 2008 Collabora Ltd.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA  02110-1301  USA
18  *
19  * Authors: Xavier Claessens <xclaesse@gmail.com>
20  */
21
22 #include <config.h>
23 #include <stdlib.h>
24 #include <glib.h>
25 #include <gtk/gtk.h>
26
27 #include <libempathy/empathy-debug.h>
28 #include <libempathy/empathy-utils.h>
29 #include <libempathy-gtk/empathy-log-window.h>
30 #include <libempathy-gtk/empathy-ui-utils.h>
31
32 static void
33 destroy_cb (GtkWidget *dialog,
34     gpointer user_data)
35 {
36   gtk_main_quit ();
37 }
38
39 int
40 main (int argc,
41     char *argv[])
42 {
43   GtkWidget *window;
44
45   g_thread_init (NULL);
46   gtk_init (&argc, &argv);
47   empathy_gtk_init ();
48   g_set_application_name (PACKAGE_NAME);
49   gtk_window_set_default_icon_name ("empathy");
50
51   window = empathy_log_window_show (NULL, NULL, FALSE, NULL);
52
53   g_signal_connect (window, "destroy", G_CALLBACK (destroy_cb), NULL);
54
55   gtk_main ();
56
57   return EXIT_SUCCESS;
58 }