[empathy/gnome-3-2] empathy-debugger: rely on gtk_application_add_window() to manage the main loop



commit f3e2b667893b4abc3b39aa338716dace9e9723ac
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Oct 25 17:03:28 2011 +0200

    empathy-debugger: rely on gtk_application_add_window() to manage the main loop
    
    https://bugzilla.gnome.org/show_bug.cgi?id=662504

 src/empathy-debugger.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-debugger.c b/src/empathy-debugger.c
index 664dc21..0bf34e0 100644
--- a/src/empathy-debugger.c
+++ b/src/empathy-debugger.c
@@ -38,10 +38,9 @@ activate_cb (GApplication *app)
   if (window == NULL)
     {
       window = empathy_debug_window_new (NULL);
-      g_signal_connect (window, "destroy", gtk_main_quit, NULL);
 
-      /* don't let this application exit automatically */
-      g_application_hold (G_APPLICATION (app));
+      gtk_application_add_window (GTK_APPLICATION (app),
+          GTK_WINDOW (window));
     }
   else
     {



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