diff options
author | Travis Reitter <travis.reitter@collabora.co.uk> | 2010-10-22 05:27:23 +0800 |
---|---|---|
committer | Travis Reitter <travis.reitter@collabora.co.uk> | 2010-10-22 08:43:04 +0800 |
commit | 73c0679204bc2e268f866ca802772c3f6a26288c (patch) | |
tree | 7135096d228de16f24a94625db259f6d3b334f81 | |
parent | 29fd0970e4c60963117322c3d067b93fa9461293 (diff) | |
download | gsoc2013-empathy-73c0679204bc2e268f866ca802772c3f6a26288c.tar gsoc2013-empathy-73c0679204bc2e268f866ca802772c3f6a26288c.tar.gz gsoc2013-empathy-73c0679204bc2e268f866ca802772c3f6a26288c.tar.bz2 gsoc2013-empathy-73c0679204bc2e268f866ca802772c3f6a26288c.tar.lz gsoc2013-empathy-73c0679204bc2e268f866ca802772c3f6a26288c.tar.xz gsoc2013-empathy-73c0679204bc2e268f866ca802772c3f6a26288c.tar.zst gsoc2013-empathy-73c0679204bc2e268f866ca802772c3f6a26288c.zip |
Port the debugger to new G/tkApplication.
Helps bgo#632846.
-rw-r--r-- | src/empathy-debugger.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; |