[gnome-tetravex] Do not show window at startup.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex] Do not show window at startup.
- Date: Sat, 26 Oct 2019 16:19:45 +0000 (UTC)
commit 9027d4da49a9ab6bc65cac1c7d2cb324b388b381
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Oct 26 18:19:22 2019 +0200
Do not show window at startup.
src/gnome-tetravex.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index fab26ef..d2e2150 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -229,6 +229,7 @@ private class Tetravex : Gtk.Application
HeaderBar headerbar = new HeaderBar ();
headerbar.title = PROGRAM_NAME;
headerbar.show_close_button = true;
+ headerbar.show ();
window.set_titlebar (headerbar);
Builder menu_builder = new Builder.from_resource ("/org/gnome/Tetravex/app-menu.ui");
@@ -283,6 +284,7 @@ private class Tetravex : Gtk.Application
view.hexpand = true;
view.vexpand = true;
view.can_focus = true;
+ view.show ();
view.button_release_event.connect (view_button_release_event);
settings.bind ("theme", view, "theme-id", SettingsBindFlags.GET | SettingsBindFlags.NO_SENSITIVITY);
@@ -391,8 +393,6 @@ private class Tetravex : Gtk.Application
finish_action.set_enabled (!view.tile_selected);
});
- window.show_all ();
-
tick_cb ();
if (can_restore && restore_on_start)
new_game (saved_game);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]