28
28
#include "empathy-debug-window.h"
30
#define EMPATHY_DEBUGGER_DBUS_NAME "org.gnome.Empathy.Debugger"
32
static GtkWidget *window = NULL;
35
activate_cb (GApplication *app)
39
window = empathy_debug_window_new (NULL);
40
g_signal_connect (window, "destroy", gtk_main_quit, NULL);
42
/* don't let this application exit automatically */
43
g_application_hold (G_APPLICATION (app));
47
gtk_window_present (GTK_WINDOW (window));
36
58
g_thread_init (NULL);
37
59
gtk_init (&argc, &argv);
38
60
empathy_gtk_init ();
62
app = gtk_application_new (EMPATHY_DEBUGGER_DBUS_NAME,
63
G_APPLICATION_FLAGS_NONE);
64
g_signal_connect (app, "activate", G_CALLBACK (activate_cb), NULL);
40
66
g_set_application_name (_("Empathy Debugger"));
68
/* Make empathy and empathy-debugger appear as the same app in gnome-shell */
69
gdk_set_program_class ("Empathy");
42
70
gtk_window_set_default_icon_name ("empathy");
43
71
textdomain (GETTEXT_PACKAGE);
45
window = empathy_debug_window_new (NULL);
46
g_signal_connect (window, "destroy", gtk_main_quit, NULL);
73
retval = g_application_run (G_APPLICATION (app), argc, argv);