[gnome-games/wip/exalm/rebrand] application-window: Fix the window close confirmation
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/rebrand] application-window: Fix the window close confirmation
- Date: Sun, 20 Jun 2021 20:08:42 +0000 (UTC)
commit b074090de5ca85d4b0388e88c3cdb3abf97b0893
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Jun 21 00:18:57 2021 +0500
application-window: Fix the window close confirmation
src/ui/application-window.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index 1b28958b..711e2b14 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -128,7 +128,7 @@ private class Games.ApplicationWindow : Adw.ApplicationWindow {
protected override bool close_request () {
if (confirm_exit)
- return true;
+ return Gdk.EVENT_PROPAGATE;
quit_game.begin ((obj, res) => {
if (!quit_game.end (res))
@@ -139,7 +139,7 @@ private class Games.ApplicationWindow : Adw.ApplicationWindow {
close ();
});
- return false;
+ return Gdk.EVENT_STOP;
}
[GtkCallback]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]