[gnome-contacts] Add static member for the global app instance



commit ea081611e3ea73a1300ce3bbc33769f712ec83dc
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jul 1 14:22:40 2011 +0200

    Add static member for the global app instance

 src/contacts-app.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 40dca34..a1c2ac7 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -21,6 +21,7 @@ using Gtk;
 using Folks;
 
 public class Contacts.App : Window {
+  public static App app;
   private Store contacts_store;
   private ListPane list_pane;
   private ContactPane contacts_pane;
@@ -41,6 +42,7 @@ public class Contacts.App : Window {
   }
 
   public App () {
+    this.app = this;
     set_title (_("Contacts"));
     set_size_request (700, 510);
     this.destroy.connect (Gtk.main_quit);



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