[gnome-contacts] Move the App.app initialization to an earlier place



commit 0db26f1d3147df745cb59ad27f568f25987ddb56
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jan 27 15:54:28 2012 +0100

    Move the App.app initialization to an earlier place

 src/contacts-app.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 4d4a973..2a7bbad 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -207,8 +207,6 @@ public class Contacts.App : Gtk.Application {
   }
 
   private void create_window () {
-    this.app = this;
-
     var action = new GLib.SimpleAction ("quit", null);
     action.activate.connect (() => { window.destroy (); });
     this.add_action (action);
@@ -414,5 +412,6 @@ public class Contacts.App : Gtk.Application {
 
   public App () {
     Object (application_id: "org.gnome.Contacts", flags: ApplicationFlags.HANDLES_COMMAND_LINE);
+    this.app = this;
   }
 }



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