[empathy] Port the debugger to new G/tkApplication.



commit 73c0679204bc2e268f866ca802772c3f6a26288c
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Thu Oct 21 14:27:23 2010 -0700

    Port the debugger to new G/tkApplication.
    
    Helps bgo#632846.

 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 2203041..2688bfd 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]