From 73c0679204bc2e268f866ca802772c3f6a26288c Mon Sep 17 00:00:00 2001 From: Travis Reitter Date: Thu, 21 Oct 2010 14:27:23 -0700 Subject: Port the debugger to new G/tkApplication. Helps bgo#632846. --- src/empathy-debugger.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/empathy-debugger.c') diff --git a/src/empathy-debugger.c b/src/empathy-debugger.c index 2203041d1..2688bfd1e 100644 --- a/src/empathy-debugger.c +++ b/src/empathy-debugger.c @@ -39,7 +39,8 @@ main (int argc, g_thread_init (NULL); empathy_gtk_init (); - app = gtk_application_new (EMPATHY_DEBUGGER_DBUS_NAME, &argc, &argv); + app = gtk_application_new (EMPATHY_DEBUGGER_DBUS_NAME, + G_APPLICATION_IS_SERVICE); g_set_application_name (_("Empathy Debugger")); @@ -49,7 +50,9 @@ main (int argc, window = empathy_debug_window_new (NULL); g_signal_connect (window, "destroy", gtk_main_quit, NULL); - gtk_application_run (app); + /* don't let this application exit automatically */ + g_application_hold (G_APPLICATION (app)); + g_application_run (G_APPLICATION (app), argc, argv); g_object_unref (app); return EXIT_SUCCESS; -- cgit v1.2.3