[four-in-a-row/arnaudb/wip/gtk4: 65/92] Widgets are visible.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row/arnaudb/wip/gtk4: 65/92] Widgets are visible.
- Date: Sat, 26 Sep 2020 10:29:07 +0000 (UTC)
commit cef1d4cccf10815019a61f2cf99e01dd97029f10
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sun Apr 19 19:56:30 2020 +0200
Widgets are visible.
src/four-in-a-row.vala | 3 ---
src/game-window.vala | 4 ----
src/scorebox.vala | 1 -
3 files changed, 8 deletions(-)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index f21c7ad..4bc826f 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -249,10 +249,7 @@ private class FourInARow : Gtk.Application
/* UI parts */
new_game_screen = new NewGameScreen ();
- new_game_screen.show ();
-
game_board_view = new GameBoardView (game_board, theme_manager);
- game_board_view.show ();
GLib.Menu app_menu = new GLib.Menu ();
diff --git a/src/game-window.vala b/src/game-window.vala
index a2bde68..2905049 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -94,12 +94,10 @@ private class GameWindow : AdaptativeWindow, AdaptativeWidget
add_adaptative_child ((AdaptativeWidget) (!) game_widget_1);
}
actionbar = new GameActionBar (name, game_widget_2, /* show actionbar */ start_now);
- actionbar.show ();
actionbar.valign = Align.END;
overlay.add_overlay (actionbar);
GameActionBarPlaceHolder actionbar_placeholder = new GameActionBarPlaceHolder (actionbar);
- actionbar_placeholder.show ();
game_box.pack_end (actionbar_placeholder, /* expand */ false, /* fill */ true, /* padding */ 0);
new_game_box.pack_start (new_game_screen, true, true, 0);
@@ -119,7 +117,6 @@ private class GameWindow : AdaptativeWindow, AdaptativeWidget
/* Translators: when configuring a new game, tooltip text of the blue Start button */
// _start_game_button.set_tooltip_text (_("Start a new game as configured"));
((StyleContext) _start_game_button.get_style_context ()).add_class ("suggested-action");
- _start_game_button.show ();
new_game_box.pack_end (_start_game_button, false, false, 0);
start_game_button = _start_game_button;
}
@@ -128,7 +125,6 @@ private class GameWindow : AdaptativeWindow, AdaptativeWidget
game_box.set_focus_child (view); // TODO test if necessary; note: view could grab focus
from application
view.halign = Align.FILL;
view.can_focus = true;
- view.show ();
/* start or not */
if (start_now)
diff --git a/src/scorebox.vala b/src/scorebox.vala
index abe32e7..d87208a 100644
--- a/src/scorebox.vala
+++ b/src/scorebox.vala
@@ -81,7 +81,6 @@ private class Scorebox : Dialog
grid.attach (label_score_end, 1, 2, 1, 1);
label_score_end.halign = Align.END;
- grid.show_all ();
get_content_area ().pack_start (grid);
theme_manager.theme_changed.connect (update);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]