[gnome-games] Revert "reset-controller-mapping-dialog: Set modal programmatically"



commit 1ef5f4dce84d9c57b69a953902f392542a4e6639
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Aug 19 22:14:26 2019 +0500

    Revert "reset-controller-mapping-dialog: Set modal programmatically"
    
    This reverts commit 76d893ebdcb4a374e87185c143f1367046236e77.
    
    Turns out it's not needed, I had an error in another place.

 data/ui/reset-controller-mapping-dialog.ui | 1 +
 src/ui/preferences-subpage-gamepad.vala    | 1 -
 src/ui/preferences-subpage-keyboard.vala   | 1 -
 3 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/data/ui/reset-controller-mapping-dialog.ui b/data/ui/reset-controller-mapping-dialog.ui
index aaaa2d7e..3a281424 100644
--- a/data/ui/reset-controller-mapping-dialog.ui
+++ b/data/ui/reset-controller-mapping-dialog.ui
@@ -2,6 +2,7 @@
 <interface>
   <requires lib="gtk+" version="3.24"/>
   <template class="GamesResetControllerMappingDialog" parent="GtkMessageDialog">
+    <property name="modal">True</property>
     <property name="destroy-with-parent">True</property>
     <property name="type-hint">dialog</property>
     <property name="message-type">question</property>
diff --git a/src/ui/preferences-subpage-gamepad.vala b/src/ui/preferences-subpage-gamepad.vala
index 1182235e..fc661136 100644
--- a/src/ui/preferences-subpage-gamepad.vala
+++ b/src/ui/preferences-subpage-gamepad.vala
@@ -180,7 +180,6 @@ private class Games.PreferencesSubpageGamepad : Gtk.Box, PreferencesSubpage {
        private void reset_mapping () {
                var message_dialog = new ResetControllerMappingDialog ();
                message_dialog.transient_for = get_toplevel () as Gtk.Window;
-               message_dialog.modal = true;
                message_dialog.response.connect ((response) => {
                        switch (response) {
                                case Gtk.ResponseType.ACCEPT:
diff --git a/src/ui/preferences-subpage-keyboard.vala b/src/ui/preferences-subpage-keyboard.vala
index 6466e7e9..16a243e5 100644
--- a/src/ui/preferences-subpage-keyboard.vala
+++ b/src/ui/preferences-subpage-keyboard.vala
@@ -164,7 +164,6 @@ private class Games.PreferencesSubpageKeyboard : Gtk.Box, PreferencesSubpage {
        private void reset_mapping () {
                var message_dialog = new ResetControllerMappingDialog ();
                message_dialog.transient_for = get_toplevel () as Gtk.Window;
-               message_dialog.modal = true;
                message_dialog.response.connect ((response) => {
                        switch (response) {
                                case Gtk.ResponseType.ACCEPT:


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