[sysprof] about: handle response from about dialog



commit 117d4c480dba5ab96f136c3a409e5c65dbf16e04
Author: Christian Hergert <christian hergert me>
Date:   Sat Apr 16 17:22:52 2016 -0700

    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 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/sp-application.c b/src/sp-application.c
index 776f57b..1363e6d 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);
 }
 


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