[gnome-games/wip/exalm/preferences: 1/5] application: Make preferences window dialog modal



commit 4093cc11c5bc80837d44087750a172a8bb4d76a2
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]