[gnome-weather] Application: only do the inactivity timeout when installed
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather] Application: only do the inactivity timeout when installed
- Date: Thu, 13 Feb 2014 21:53:26 +0000 (UTC)
commit cbe2a06e8b6a3f047bbe94b80a7178c11c11619d
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Feb 13 22:03:06 2014 +0100
Application: only do the inactivity timeout when installed
The inactivity timeout is meant for the search provider. It's
not useful when testing the application itself.
src/main.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/main.js b/src/main.js
index f0f0435..5ffd350 100644
--- a/src/main.js
+++ b/src/main.js
@@ -52,9 +52,10 @@ const Application = new Lang.Class({
Extends: Gtk.Application,
_init: function() {
- this.parent({ application_id: pkg.name,
- inactivity_timeout: 60000 });
+ this.parent({ application_id: pkg.name });
GLib.set_application_name(_("Weather"));
+ if (pkg.moduledir.startsWith('resource:///'))
+ this.set_inactivity_timeout(60000);
this._searchProvider = new SearchProvider.SearchProvider(this);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]