[gnome-weather] Activate the application when running from source tree



commit 265bd117a293782095f418e936967059d894615c
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun Aug 18 18:47:27 2013 +0200

    Activate the application when running from source tree
    
    This way it's again possible to debug the app without installing,
    "simply" by running ./src/org.gnome.Weather.Application
    (tab completion helps here)

 src/main.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/main.js b/src/main.js
index 765e58e..8d563d0 100644
--- a/src/main.js
+++ b/src/main.js
@@ -85,6 +85,9 @@ const Application = new Lang.Class({
 
         this.add_accelerator("Escape", "win.selection-mode(false)", null);
         this.add_accelerator("<Primary>a", "win.select-all", null);
+
+        if (pkg.pkgdatadir != pkg.moduledir) // running from source
+            this.activate();
     },
 
     vfunc_activate: function() {


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