[gnome-2048/gnome-3-34] Delay a bit game creation.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048/gnome-3-34] Delay a bit game creation.
- Date: Mon, 28 Oct 2019 13:37:55 +0000 (UTC)
commit 18fff88864b806f7689fd43e4d3780781dda4de3
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 8ff248e..92905ff 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -44,6 +44,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 ();
@@ -53,11 +58,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]