diff options
author | Mike Ruprecht <mike.ruprecht@collabora.co.uk> | 2010-02-25 04:52:38 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-15 16:14:04 +0800 |
commit | 8e638ddd817039c0b6cdf342ce657b1b1e975b45 (patch) | |
tree | 7f1fe2a022de9f597f0466c7a0353df9dc868c25 /src/empathy-debugger.c | |
parent | df53944e1ba92732760d1cfe437b8b56edda526b (diff) | |
download | gsoc2013-empathy-8e638ddd817039c0b6cdf342ce657b1b1e975b45.tar gsoc2013-empathy-8e638ddd817039c0b6cdf342ce657b1b1e975b45.tar.gz gsoc2013-empathy-8e638ddd817039c0b6cdf342ce657b1b1e975b45.tar.bz2 gsoc2013-empathy-8e638ddd817039c0b6cdf342ce657b1b1e975b45.tar.lz gsoc2013-empathy-8e638ddd817039c0b6cdf342ce657b1b1e975b45.tar.xz gsoc2013-empathy-8e638ddd817039c0b6cdf342ce657b1b1e975b45.tar.zst gsoc2013-empathy-8e638ddd817039c0b6cdf342ce657b1b1e975b45.zip |
Separate the debug window into its own process.
Diffstat (limited to 'src/empathy-debugger.c')
-rw-r--r-- | src/empathy-debugger.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/empathy-debugger.c b/src/empathy-debugger.c new file mode 100644 index 000000000..ef6f503f1 --- /dev/null +++ b/src/empathy-debugger.c @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2005-2007 Imendio AB + * Copyright (C) 2007-2010 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <config.h> + +#include <gtk/gtk.h> +#include <glib/gi18n.h> + +#include <libempathy/empathy-utils.h> +#include <libempathy-gtk/empathy-ui-utils.h> + +#include "empathy-debug-window.h" + +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 " Debugger")); + + gtk_window_set_default_icon_name ("empathy"); + + window = empathy_debug_window_new (NULL); + g_signal_connect (window, "destroy", gtk_main_quit, NULL); + + gtk_main (); + + return EXIT_SUCCESS; +} |