[five-or-more/arnaudb/wip/gtk4: 64/80] Widgets are visible.




commit 14d04f6af699e741914f6089b50ee29425de9a4f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat May 9 22:16:37 2020 +0200

    Widgets are visible.

 src/window.vala | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/src/window.vala b/src/window.vala
index 276d1e1..52d754a 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -106,8 +106,6 @@ private class GameWindow : ApplicationWindow
 
         NextPiecesWidget next_pieces_widget = new NextPiecesWidget (settings, game, theme);
         preview_hbox.pack_start (next_pieces_widget);
-        next_pieces_widget.realize ();
-        next_pieces_widget.show ();
 
         grid_frame.set (game.n_cols, game.n_rows);
         game.board.board_changed.connect (() => { grid_frame.set (game.n_cols, game.n_rows); });
@@ -120,9 +118,6 @@ private class GameWindow : ApplicationWindow
         game_view.notify ["background-color"].connect (() => { reset_background_action.set_enabled 
(game_view.background_color != View.default_background_color); });
         settings.bind (FiveOrMoreApp.KEY_BACKGROUND_COLOR, game_view, "background-color", 
SettingsBindFlags.DEFAULT);
         grid_frame.add (game_view);
-        game_view.show ();
-
-        grid_frame.show ();
 
         init_scores_dialog ();
     }


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