[gnome-2048] Delay a bit game creation.



commit ddb347d0b4db599e1d4c6801f857d8efafa9c0a0
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Oct 28 14:33:20 2019 +0100

    Delay a bit game creation.
    
    Else, font looks broken
    for one second. Surely,
    there is a good reason.

 src/game-window.vala | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/game-window.vala b/src/game-window.vala
index ad67239..b8a6c5c 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -45,6 +45,11 @@ private class GameWindow : ApplicationWindow
         _create_scores_dialog ();   // the library forbids to delay the dialog creation
 
         notify ["has-toplevel-focus"].connect (() => _embed.grab_focus ());
+    }
+
+    internal GameWindow (TwentyFortyEight application)
+    {
+        Object (application: application, visible: true);
 
         if (!_game.restore_game (ref _settings))
             new_game_cb ();
@@ -54,11 +59,6 @@ private class GameWindow : ApplicationWindow
         _init_gestures ();
     }
 
-    internal GameWindow (TwentyFortyEight application)
-    {
-        Object (application: application, visible: true);
-    }
-
     [GtkCallback]
     private void on_destroy ()
     {


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