[five-or-more/arnaudb/gtk3: 17/24] Revert "Widgets are visible."




commit 6fd8ca4e843f649f242e6c6feaab72323e0907e1
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Oct 22 17:29:40 2020 +0200

    Revert "Widgets are visible."
    
    This reverts commit 05300bdc6a44a9ad47b1750ba633aea7768b25bf.

 src/window.vala | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/window.vala b/src/window.vala
index 52d754a..276d1e1 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -106,6 +106,8 @@ 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); });
@@ -118,6 +120,9 @@ 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]