From 15da090d15ad32c01167cf7c1c297bfa40fe309f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne?= Date: Sun, 14 Feb 2021 13:02:30 +0100 Subject: [PATCH] About dialog: close when the close button is pressed (#270) Fixes #242. --- src/Dialogs/About.vala | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Dialogs/About.vala b/src/Dialogs/About.vala index 4e5a224..c95ba5f 100644 --- a/src/Dialogs/About.vala +++ b/src/Dialogs/About.vala @@ -22,6 +22,13 @@ public class Tootle.Dialogs.About : AboutDialog { artists = Build.get_artists (); translator_credits = Build.TRANSLATOR != " " ? Build.TRANSLATOR : null; + response.connect ((response_id) => { + if (response_id == Gtk.ResponseType.CANCEL || + response_id == Gtk.ResponseType.DELETE_EVENT) { + hide_on_delete (); + } + }); + present (); }