[gnome-sudoku/gnome-3-38] Make winning message dialog modal
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku/gnome-3-38] Make winning message dialog modal
- Date: Wed, 23 Dec 2020 14:27:22 +0000 (UTC)
commit 2102b63e8012c7d27e958375ab2ee29dbb9a86ef
Author: Andrey Kutejko <andy128k gmail com>
Date: Wed Dec 23 01:44:30 2020 +0000
Make winning message dialog modal
(cherry picked from commit e1f5d90b652e9d8ca5f972d34fdce57f6c3e6703)
src/gnome-sudoku.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index 92ca706a..e880162b 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -413,7 +413,7 @@ public class Sudoku : Gtk.Application
var time_str = ngettext ("Well done, you completed the puzzle in %d minute!",
"Well done, you completed the puzzle in %d minutes!",
minutes).printf (minutes);
- var dialog = new MessageDialog (window, DialogFlags.DESTROY_WITH_PARENT, MessageType.INFO,
ButtonsType.NONE, time_str);
+ var dialog = new MessageDialog (window, DialogFlags.MODAL, MessageType.INFO, ButtonsType.NONE,
time_str);
dialog.add_button (_("_Quit"), ResponseType.REJECT);
dialog.add_button (_("Play _Again"), ResponseType.ACCEPT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]