[gnome-nibbles/arnaudb/modernize-code] Do not show window in startup.



commit 23c89ae9fcc25ba1303d6c03058cb2ac60793b98
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed May 27 18:43:58 2020 +0200

    Do not show window in startup.

 src/gnome-nibbles.vala | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index cbc8d02..6cc6dad 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -49,7 +49,7 @@ private class Nibbles : Gtk.Application
         return new Nibbles ().run (args);
     }
 
-    private Nibbles ()
+    private inline Nibbles ()
     {
         Object (application_id: "org.gnome.Nibbles", flags: ApplicationFlags.FLAGS_NONE);
 
@@ -96,15 +96,12 @@ private class Nibbles : Gtk.Application
 
         window = new NibblesWindow ();
         add_window (window);
-
-        window.show ();
     }
 
     protected override void activate ()
     {
-        base.activate ();
-
         window.present ();
+        base.activate ();
     }
 
     protected override void shutdown ()
@@ -113,7 +110,7 @@ private class Nibbles : Gtk.Application
         base.shutdown ();
     }
 
-    private void help_cb ()
+    private inline void help_cb ()
     {
         try
         {
@@ -125,7 +122,7 @@ private class Nibbles : Gtk.Application
         }
     }
 
-    private void about_cb ()
+    private inline void about_cb ()
     {
         string [] authors = {
         /* Translators: text crediting an author, in the about dialog */


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