[gnome-taquin/arnaudb/wip/gtk4: 106/108] Widgets are visible.




commit 8a58ab6f4a08c4537cdc9eda8c80a37653f211c2
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Apr 30 12:20:11 2020 +0200

    Widgets are visible.

 src/adaptative-window.vala | 1 -
 src/base-view.vala         | 2 --
 src/game-view.vala         | 5 -----
 src/taquin-main.vala       | 2 --
 4 files changed, 10 deletions(-)
---
diff --git a/src/adaptative-window.vala b/src/adaptative-window.vala
index bb60aa0..f797707 100644
--- a/src/adaptative-window.vala
+++ b/src/adaptative-window.vala
@@ -174,7 +174,6 @@ private abstract class AdaptativeWindow : ApplicationWindow
                 assert_not_reached ();
 
             headerbar = value;
-            value.show ();
             set_titlebar (value);
         }
     }
diff --git a/src/base-view.vala b/src/base-view.vala
index fc2f8e6..2b09f10 100644
--- a/src/base-view.vala
+++ b/src/base-view.vala
@@ -98,7 +98,6 @@ private class BaseView : Widget, AdaptativeWidget
                                     /* big placeholder */ true,
                                     ref artists, ref authors, ref comments, ref copyright, ref documenters, 
ref logo_icon_name, ref program_name, ref translator_credits, ref version, ref website, ref website_label);
         about_list.set_window_size (saved_window_size);
-        about_list.show ();
         stack.add (about_list);
         about_list_created = true;
     }
@@ -125,7 +124,6 @@ private class BaseView : Widget, AdaptativeWidget
     {
         notifications_revealer = new NotificationsRevealer ();
         notifications_revealer.set_window_size (saved_window_size);
-        notifications_revealer.show ();
         notifications_overlay.add_overlay (notifications_revealer);
 //        notifications_overlay.set_overlay_pass_through (notifications_revealer, true);
         notifications_revealer_created = true;
diff --git a/src/game-view.vala b/src/game-view.vala
index 0e62ada..19d1851 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -34,7 +34,6 @@ private class GameView : BaseView, AdaptativeWidget
         game_stack = new Stack ();
         game_stack.hexpand = true;
         game_stack.vexpand = true;
-        game_stack.show ();
         main_grid.add (game_stack);
 
         scrolled = new ScrolledWindow (null, null);
@@ -44,7 +43,6 @@ private class GameView : BaseView, AdaptativeWidget
         new_game_box = new Box (Orientation.VERTICAL, /* spacing */ 0);
         new_game_box.halign = Align.CENTER;
         new_game_box.valign = Align.CENTER;
-        new_game_box.show ();
         scrolled.add (new_game_box);
     }
 
@@ -64,7 +62,6 @@ private class GameView : BaseView, AdaptativeWidget
             context.add_class ("suggested-action");
             /* 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"));
-            _start_game_button.show ();
             new_game_box.add (_start_game_button);
             start_game_button = _start_game_button;
         }
@@ -74,10 +71,8 @@ private class GameView : BaseView, AdaptativeWidget
         game_box = new Box (Orientation.VERTICAL, 0);
         game_content.hexpand = true;
         game_content.vexpand = true;
-        game_content.show ();
         game_box.add (game_content);
         game_box.add (actionbar_placeholder);
-        game_box.show ();
         game_box.get_style_context ().add_class ("game-box");
 
         // for the new-game-screen-to-game animation, it is probably better to have the game under 
("uncovered")
diff --git a/src/taquin-main.vala b/src/taquin-main.vala
index 5a596a9..ed32cf5 100644
--- a/src/taquin-main.vala
+++ b/src/taquin-main.vala
@@ -208,8 +208,6 @@ private class Taquin : Gtk.Application, BaseApplication
 
         history_button_1 = new HistoryButton ();
         history_button_2 = new HistoryButton ();
-        history_button_1.show ();
-        history_button_2.show ();
 
         /* Window */
         init_night_mode ();


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