[gnome-maps] QueryPoint: declare before used
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] QueryPoint: declare before used
- Date: Tue, 2 Dec 2014 02:24:30 +0000 (UTC)
commit 2e7ca4200428197782c75228a64e32636996c1cb
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Tue Dec 2 03:09:17 2014 +0100
QueryPoint: declare before used
The QueryPoint class was used before declared. Fixed.
src/routeQuery.js | 54 ++++++++++++++++++++++++++--------------------------
1 files changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/src/routeQuery.js b/src/routeQuery.js
index 554d68b..f113c4c 100644
--- a/src/routeQuery.js
+++ b/src/routeQuery.js
@@ -39,6 +39,33 @@ const Transportation = {
}
};
+const QueryPoint = new Lang.Class({
+ Name: 'QueryPoint',
+ Extends: GObject.Object,
+ Properties: {
+ 'place': GObject.ParamSpec.object('place',
+ '',
+ '',
+ GObject.ParamFlags.READABLE |
+ GObject.ParamFlags.WRITABLE,
+ Geocode.Place),
+ },
+
+ _init: function() {
+ this._place = null;
+ this.parent();
+ },
+
+ set place(p) {
+ this._place = p;
+ this.notify('place');
+ },
+
+ get place() {
+ return this._place;
+ }
+});
+
const RouteQuery = new Lang.Class({
Name: 'RouteQuery',
Extends: GObject.Object,
@@ -141,30 +168,3 @@ const RouteQuery = new Lang.Class({
"\nTransportation: " + this.transportation;
}
});
-
-const QueryPoint = new Lang.Class({
- Name: 'QueryPoint',
- Extends: GObject.Object,
- Properties: {
- 'place': GObject.ParamSpec.object('place',
- '',
- '',
- GObject.ParamFlags.READABLE |
- GObject.ParamFlags.WRITABLE,
- Geocode.Place),
- },
-
- _init: function() {
- this._place = null;
- this.parent();
- },
-
- set place(p) {
- this._place = p;
- this.notify('place');
- },
-
- get place() {
- return this._place;
- }
-});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]