[five-or-more/arnaudb/wip/gtk4: 79/80] Make MessageDialog modal.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/arnaudb/wip/gtk4: 79/80] Make MessageDialog modal.
- Date: Sun, 25 Oct 2020 18:51:47 +0000 (UTC)
commit 65cc88930b312c9bda8bec07a3634ebe2e80912a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Aug 6 16:53:53 2020 +0200
Make MessageDialog modal.
src/window.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/window.vala b/src/window.vala
index 4c2d5ac..fe50338 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -286,7 +286,7 @@ private class GameWindow : ApplicationWindow
int n_rows = Game.game_difficulty[size].n_rows;
int n_cols = Game.game_difficulty[size].n_cols;
if (game.score > 0 && !game.is_game_over) {
- var flags = DialogFlags.DESTROY_WITH_PARENT;
+ var flags = DialogFlags.DESTROY_WITH_PARENT | DialogFlags.MODAL;
var restart_game_dialog = new MessageDialog (this,
flags,
MessageType.WARNING,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]