[gnome-nibbles/arnaudb/wip/gtk4: 28/62] Widgets are visible.



commit b73644940af8d7d24ec781b3851e6491de5b6248
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat May 30 18:13:53 2020 +0200

    Widgets are visible.

 src/nibbles-window.vala | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/src/nibbles-window.vala b/src/nibbles-window.vala
index ad38428..ada34c9 100644
--- a/src/nibbles-window.vala
+++ b/src/nibbles-window.vala
@@ -132,7 +132,6 @@ private class NibblesWindow : ApplicationWindow
         view = new NibblesView (game,
                                 settings.get_int ("tile-size"),
                                 !settings.get_boolean ("sound"));
-        view.show ();
 
         frame = new Games.GridFrame (NibblesGame.WIDTH, NibblesGame.HEIGHT);
         game_box.pack_start (frame);
@@ -141,7 +140,6 @@ private class NibblesWindow : ApplicationWindow
         scoreboard_life = NibblesView.load_pixmap_file ("scoreboard-life.svg", 2 * view.tile_size, 2 * 
view.tile_size);
 
         frame.add (view);
-        frame.show ();
 
         /* Number of worms */
         game.numhumans = settings.get_int ("players");
@@ -359,8 +357,6 @@ private class NibblesWindow : ApplicationWindow
 
             dialog.destroy ();
         });
-
-        dialog.show ();
     }
 
     private void pause_cb ()
@@ -787,7 +783,6 @@ private class NibblesWindow : ApplicationWindow
         label.valign = Align.START;
         label.set_margin_top (150);
         label.get_style_context ().add_class ("menu-title");
-        label.show ();
 
         /* Translators: label of a button that appears at the end of a level; starts next level */
         var button = new Button.with_label (_("_Next Level"));
@@ -857,7 +852,6 @@ private class NibblesWindow : ApplicationWindow
         game_over_label.valign = Align.START;
         game_over_label.set_margin_top (150);
         game_over_label.get_style_context ().add_class ("menu-title");
-        game_over_label.show ();
 
         /* Translators: label displayed at the end of a level, if the player finished all the levels */
         var msg_label = new Label (_("You have completed the game."));
@@ -865,7 +859,6 @@ private class NibblesWindow : ApplicationWindow
         msg_label.valign = Align.START;
         msg_label.set_margin_top (window_height / 3);
         msg_label.get_style_context ().add_class ("menu-title");
-        msg_label.show ();
 
         var score_string = ngettext ("%d Point", "%d Points", score);
         score_string = score_string.printf (score);
@@ -874,7 +867,6 @@ private class NibblesWindow : ApplicationWindow
         score_label.halign = Align.CENTER;
         score_label.valign = Align.START;
         score_label.set_margin_top (window_height / 3 + 80);
-        score_label.show ();
 
         var points_left = lowest_high_score - score;
         /* Translators: label displayed at the end of a level, if the player did not score enough to have 
its score saved */
@@ -882,7 +874,6 @@ private class NibblesWindow : ApplicationWindow
         points_left_label.halign = Align.CENTER;
         points_left_label.valign = Align.START;
         points_left_label.set_margin_top (window_height / 3 + 100);
-        points_left_label.show ();
 
         /* Translators: label of a button displayed at the end of a level; restarts the game */
         var button = new Button.with_label (_("_Play Again"));
@@ -902,7 +893,6 @@ private class NibblesWindow : ApplicationWindow
 
             show_new_game_screen ();
         });
-        button.show ();
 
         overlay.add_overlay (game_over_label);
         if (is_game_won)


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