[lightsoff/arnaudb/wip/gtk4: 6/28] Widget are visible by default.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff/arnaudb/wip/gtk4: 6/28] Widget are visible by default.
- Date: Sat, 28 Nov 2020 14:29:47 +0000 (UTC)
commit 602738f5dc59451854c4e3101414be5754199e92
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Oct 26 17:02:24 2020 +0100
Widget are visible by default.
src/board-view-gtk.vala | 2 --
src/lightsoff-window.vala | 1 -
2 files changed, 3 deletions(-)
---
diff --git a/src/board-view-gtk.vala b/src/board-view-gtk.vala
index f3f1174..a408127 100644
--- a/src/board-view-gtk.vala
+++ b/src/board-view-gtk.vala
@@ -40,7 +40,6 @@ private class BoardViewGtk : Grid, BoardView
for (var y = 0; y < size; y++)
{
lights[x, y] = new ToggleButton ();
- lights[x, y].show ();
lights[x, y].toggled.connect (handle_toggle);
attach (lights[x, y], x, y, 1, 1);
focus_list.append (lights[x, y]);
@@ -48,7 +47,6 @@ private class BoardViewGtk : Grid, BoardView
set_focus_chain (focus_list);
_moves = 0;
completed.connect (() => set_sensitive (false));
- show ();
}
// Pseudorandomly generates and sets the state of each light based on
diff --git a/src/lightsoff-window.vala b/src/lightsoff-window.vala
index ddb3a1c..120aeec 100644
--- a/src/lightsoff-window.vala
+++ b/src/lightsoff-window.vala
@@ -54,7 +54,6 @@ private class LightsoffWindow : ManagedWindow
GtkGameView gtk_game_view = new GtkGameView (level);
gtk_game_view.hexpand = true;
gtk_game_view.vexpand = true;
- gtk_game_view.show ();
aspect_frame.add (gtk_game_view);
game_view = gtk_game_view;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]