[gnome-2048/gnome-3-20] Do not create widgets on activate().



commit a1b37b495aa5581acd360824dc577544b1cb6947
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon May 2 01:41:35 2016 +0200

    Do not create widgets on activate().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765825

 src/application.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/application.vala b/src/application.vala
index c10aa42..743d54f 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -125,11 +125,6 @@ public class Application : Gtk.Application
         StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), provider, 
STYLE_PROVIDER_PRIORITY_APPLICATION); */
 
         _init_game ();
-    }
-
-    protected override void activate ()
-    {
-        base.activate ();
 
         Builder builder = new Builder ();
         _create_window (builder);
@@ -145,6 +140,11 @@ public class Application : Gtk.Application
             new_game_cb ();
     }
 
+    protected override void activate ()
+    {
+        _window.present ();
+    }
+
     protected override void shutdown ()
     {
         base.shutdown ();


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