aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorSergey <sshikaree@zoho.com>2021-03-10 03:05:43 +0300
committerGitHub <noreply@github.com>2021-03-10 01:05:43 +0100
commite70b7c1222506a881b4166c67803c467e1985bbc (patch)
tree3018af720a90473787c3e9b5cb583d9620d0a951 /main
parentf4eba18ff67fb35bdedf6786c69655541327275f (diff)
downloaddino-e70b7c1222506a881b4166c67803c467e1985bbc.tar.gz
dino-e70b7c1222506a881b4166c67803c467e1985bbc.zip
Make 'Close' button close AboutDialog (#1018)
Diffstat (limited to 'main')
-rw-r--r--main/src/ui/application.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala
index 4576e7d9..358097e3 100644
--- a/main/src/ui/application.vala
+++ b/main/src/ui/application.vala
@@ -241,6 +241,12 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
dialog.copyright = "Copyright © 2016-2021 - Dino Team";
dialog.license_type = License.GPL_3_0;
+ dialog.response.connect((response_id) => {
+ if (response_id == Gtk.ResponseType.CANCEL || response_id == Gtk.ResponseType.DELETE_EVENT) {
+ dialog.destroy();
+ }
+ });
+
if (!use_csd()) {
dialog.set_titlebar(null);
}