[gnome-games/wip/exalm/preferences: 7/13] application: Make preferences window dialog modal



commit cb9a34005db342afb839cee1f288e6ac428accc0
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Jun 2 16:53:48 2020 +0500

    application: Make preferences window dialog modal

 src/ui/application.vala | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 64d8038d..2c54282b 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -459,6 +459,10 @@ public class Games.Application : Gtk.Application {
        private void preferences () {
                if (preferences_window == null) {
                        preferences_window = new PreferencesWindow ();
+
+                       preferences_window.transient_for = window;
+                       preferences_window.modal = true;
+
                        preferences_window.destroy.connect (() => {
                                preferences_window = null;
                        });


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