[gnome-weather] Activate the application when running from source tree
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather] Activate the application when running from source tree
- Date: Sun, 18 Aug 2013 21:30:37 +0000 (UTC)
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]