[gnome-games] application: Explicitly show preferences window



commit b8ce6d86258410be8b51542ca5e8345576ac959d
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Feb 25 21:21:20 2019 +0500

    application: Explicitly show preferences window
    
    I don't know why it worked before.

 data/ui/preferences-window.ui | 1 -
 src/ui/application.vala       | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/ui/preferences-window.ui b/data/ui/preferences-window.ui
index e3fb9afd..da6c1c34 100644
--- a/data/ui/preferences-window.ui
+++ b/data/ui/preferences-window.ui
@@ -2,7 +2,6 @@
 <interface>
   <!-- interface-requires gtk+ 3.8 -->
   <template class="GamesPreferencesWindow" parent="GtkWindow">
-    <property name="visible">True</property>
     <property name="title" translatable="yes">Preferences</property>
     <property name="default-width">800</property>
     <property name="default-height">500</property>
diff --git a/src/ui/application.vala b/src/ui/application.vala
index e90b65ea..f7a2aaa1 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -363,6 +363,7 @@ public class Games.Application : Gtk.Application {
                preferences_window.destroy.connect (() => {
                        preferences_window = null;
                });
+               preferences_window.present ();
        }
 
        private void help () {


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