From 2a1759c28d088b821fdf0ae7f86cac153fd9d46e Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 25 Oct 2011 17:03:28 +0200 Subject: 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 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/empathy-debugger.c b/src/empathy-debugger.c index 664dc211a..0bf34e015 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 { -- cgit v1.2.3