[four-in-a-row/KaKnife/four-in-a-row-vala] Scores and prefs dialogs should be modal



commit d0629e7cbc979759bb16b5a2b05ebe82ff595a12
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sat Dec 15 21:48:01 2018 -0600

    Scores and prefs dialogs should be modal
    
    They're appearing way outside the game window.

 src/prefs-box.vala | 1 +
 src/scorebox.vala  | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/src/prefs-box.vala b/src/prefs-box.vala
index 890ecfc..b6e5020 100644
--- a/src/prefs-box.vala
+++ b/src/prefs-box.vala
@@ -36,6 +36,7 @@ class PrefsBox : Gtk.Dialog {
             title: _("Preferences"),
             destroy_with_parent: true);
         set_transient_for(parent);
+        modal = true;
         border_width = 5;
         get_content_area().spacing = 2;
         notebook = new Gtk.Notebook();
diff --git a/src/scorebox.vala b/src/scorebox.vala
index 63e78f2..8a9c085 100644
--- a/src/scorebox.vala
+++ b/src/scorebox.vala
@@ -45,6 +45,7 @@ class Scorebox : Gtk.Dialog {
                border_width: 5);
         get_content_area().spacing = 2;
         set_transient_for(parent);
+        modal = true;
 
         Gtk.Grid grid, grid2;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]