]> git.0d.be Git - empathy.git/commitdiff
Port the debugger to new G/tkApplication.
authorTravis Reitter <travis.reitter@collabora.co.uk>
Thu, 21 Oct 2010 21:27:23 +0000 (14:27 -0700)
committerTravis Reitter <travis.reitter@collabora.co.uk>
Fri, 22 Oct 2010 00:43:04 +0000 (17:43 -0700)
Helps bgo#632846.

src/empathy-debugger.c

index 2203041d18440ba4773a5ed023c45426969778f8..2688bfd1ee03d7ab731c665ddaf4a3f287067a09 100644 (file)
@@ -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;