[gnome-maps/wip/settings] GeoClue: Add missing semicolons
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/settings] GeoClue: Add missing semicolons
- Date: Sat, 19 Oct 2013 19:06:26 +0000 (UTC)
commit 06003cc5b008b558fe14f591a7b2dacc02906dd1
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Thu Oct 17 06:45:43 2013 +0200
GeoClue: Add missing semicolons
Add missing semicolons to geoclue.js
src/geoclue.js | 6 +++---
src/settings.js | 15 +++++++--------
2 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/src/geoclue.js b/src/geoclue.js
index 5767bda..1f0dccb 100644
--- a/src/geoclue.js
+++ b/src/geoclue.js
@@ -38,7 +38,7 @@ const ManagerInterface = <interface name="org.freedesktop.GeoClue2.Manager">
<method name="GetClient">
<arg name="client" type="o" direction="out"/>
</method>
-</interface>
+</interface>;
const ManagerProxy = Gio.DBusProxy.makeProxyWrapper(ManagerInterface);
const ClientInterface = <interface name="org.freedesktop.GeoClue2.Client">
@@ -50,7 +50,7 @@ const ClientInterface = <interface name="org.freedesktop.GeoClue2.Client">
<arg name="old" type="o"/>
<arg name="new" type="o"/>
</signal>
-</interface>
+</interface>;
const ClientProxy = Gio.DBusProxy.makeProxyWrapper(ClientInterface);
const LocationInterface = <interface name="org.freedesktop.GeoClue2.Location">
@@ -58,7 +58,7 @@ const LocationInterface = <interface name="org.freedesktop.GeoClue2.Location">
<property name="Longitude" type="d" access="read"/>
<property name="Accuracy" type="d" access="read"/>
<property name="Description" type="s" access="read"/>
-</interface>
+</interface>;
const LocationProxy = Gio.DBusProxy.makeProxyWrapper(LocationInterface);
const Geoclue = new Lang.Class({
diff --git a/src/settings.js b/src/settings.js
index 14444cb..1e51591 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -29,24 +29,23 @@ const Settings = new Lang.Class({
Name: "Settings",
Extends: Gio.Settings,
- _types: {},
+ // The GVariant type formats of the settings
+ _typeFormats: {},
_init: function(schema) {
this.parent({ schema: schema });
this.list_keys().forEach((function(key) {
- this._types[key] = this.get_range(key)
- .get_child_value(1)
- .get_variant()
- .get_type()
- .dup_string()
- .slice(1);
+ this._typeFormats[key] = this.get_value(key)
+ .get_type()
+ .dup_string();
}).bind(this));
},
get: function(name) {
return this.get_value(name).deep_unpack();
},
+
set: function(name, value) {
- this.set_value(name, GLib.Variant.new (this._types[name], value));
+ this.set_value(name, GLib.Variant.new (this._typeFormats[name], value));
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]