[gnome-boxes] Add static global App.app



commit d180391efd3a917b34b2c52364d9c6e6bd56da81
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jun 1 15:00:18 2012 +0200

    Add static global App.app
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677274

 src/app.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 2baeb36..7900cbb 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -9,6 +9,7 @@ private enum Boxes.AppPage {
 }
 
 private class Boxes.App: Boxes.UI {
+    public static App app;
     public override Clutter.Actor actor { get { return stage; } }
     public Gtk.ApplicationWindow window;
     public bool fullscreen {
@@ -56,6 +57,7 @@ private class Boxes.App: Boxes.UI {
     public static const uint configure_id_timeout = 100;  // 100ms
 
     public App () {
+        app = this;
         application = new Gtk.Application ("org.gnome.Boxes", 0);
         settings = new GLib.Settings ("org.gnome.boxes");
         connections = new HashTable<string, GVir.Connection> (str_hash, str_equal);



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