[gnome-games/wip/exalm/gtk4: 19/26] application: Stop using gtk_widget_hide_on_delete()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 19/26] application: Stop using gtk_widget_hide_on_delete()
- Date: Fri, 19 Oct 2018 20:19:19 +0000 (UTC)
commit 4e5197a91147ab9ba3ee27e7399956d36a35d451
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Jul 29 13:36:35 2018 +0500
application: Stop using gtk_widget_hide_on_delete()
Use GtkWindow's hide_on_close property instead.
src/ui/application.vala | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index c3db9b51..4444b30f 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -401,10 +401,7 @@ public class Games.Application : Gtk.Application {
dialog.documenters = Credits.DOCUMENTERS;
dialog.translator_credits = _("translator-credits");
- dialog.response.connect ((response_id) => {
- if (response_id == Gtk.ResponseType.CANCEL || response_id ==
Gtk.ResponseType.DELETE_EVENT)
- dialog.hide_on_delete ();
- });
+ dialog.hide_on_close = true;
dialog.present ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]