summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-01-27 15:54:28 +0100
committerAlexander Larsson <alexl@redhat.com>2012-01-27 16:04:39 +0100
commit0db26f1d3147df745cb59ad27f568f25987ddb56 (patch)
treedcedde1eea435c199089804645a86f208fe47317
parent056f6ac24e838a78e875629d4f411df736b3331d (diff)
downloadgnome-contacts-0db26f1d3147df745cb59ad27f568f25987ddb56.tar.gz
Move the App.app initialization to an earlier place
-rw-r--r--src/contacts-app.vala3
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;
}
}