[gnome-mahjongg] Move calls from Mahjongg() to startup().



commit 678c332aaf828b80d10f3670b5fd9614d5f13233
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Jul 17 15:23:09 2014 +0200

    Move calls from Mahjongg() to startup().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733211

 src/gnome-mahjongg.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index 2c0d28c..e5336a4 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -31,17 +31,17 @@ public class Mahjongg : Gtk.Application
     public Mahjongg ()
     {
         Object (application_id: "org.gnome.gnome-mahjongg", flags: ApplicationFlags.FLAGS_NONE);
+    }
+
+    protected override void startup ()
+    {
+        base.startup ();
 
         add_action_entries (action_entries, this);
         add_accelerator ("Pause", "app.pause", null);
         add_accelerator ("<Primary>h", "app.hint", null);
         add_accelerator ("<Primary>z", "app.undo", null);
         add_accelerator ("<Primary><Shift>z", "app.redo", null);
-    }
-
-    protected override void startup ()
-    {
-        base.startup ();
 
         settings = new Settings ("org.gnome.mahjongg");
 


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