[gnome-maps/wip/mattiasb/service-definition] WIP: Service definition
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mattiasb/service-definition] WIP: Service definition
- Date: Wed, 3 Aug 2016 23:08:27 +0000 (UTC)
commit 40f4fee9d6de5314d1408a20fdf19e3c6c926bd9
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Thu Aug 4 01:07:41 2016 +0200
WIP: Service definition
src/application.js | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 5a452ee..cbe22cf 100644
--- a/src/application.js
+++ b/src/application.js
@@ -101,6 +101,13 @@ const Application = new Lang.Class({
_("A path to a local tiles directory structure"),
null);
+ this.add_main_option('services',
+ 0,
+ GLib.OptionFlags.NONE,
+ GLib.OptionArg.FILENAME,
+ _("A path to a local service definition file"),
+ null);
+
this.connect('handle-local-options', (function(app, options) {
if (options.contains('local')) {
let variant = options.lookup_value('local', null);
@@ -108,6 +115,15 @@ const Application = new Lang.Class({
normalStartup = false;
}
+ if (options.contains('services')) {
+ let variant = options.lookup_value('services', null);
+ let filename = variant.deep_unpack();
+
+ this.services = variant;
+ } else {
+
+ }
+
return -1;
}).bind(this));
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]