From 117d4c480dba5ab96f136c3a409e5c65dbf16e04 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sat, 16 Apr 2016 17:22:52 -0700 Subject: [PATCH] about: handle response from about dialog On systems where this shows a close button, we need to handle the response and destroy the dialog. --- src/sp-application.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sp-application.c b/src/sp-application.c index 776f57b9..1363e6d4 100644 --- a/src/sp-application.c +++ b/src/sp-application.c @@ -170,6 +170,11 @@ sysprof_about (GSimpleAction *action, "website-label", _("Learn more about Sysprof"), NULL); + g_signal_connect (dialog, + "response", + G_CALLBACK (gtk_widget_destroy), + NULL); + gtk_window_present (dialog); }