[gnome-maps/wip/freebase-poi: 1/4] application: Require gdata >= 0.16.0 and set up the Freebase service
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/freebase-poi: 1/4] application: Require gdata >= 0.16.0 and set up the Freebase service
- Date: Sun, 28 Sep 2014 17:50:27 +0000 (UTC)
commit 13af16529b6a8e5a43fa6a11813c6f5e1f6762d2
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Sep 28 17:56:43 2014 +0200
application: Require gdata >= 0.16.0 and set up the Freebase service
A NULL developer key/authorizer is used, which is fine for testing so far.
configure.ac | 2 ++
src/application.js | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cb9d245..87d0aab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,11 +25,13 @@ PKG_PROG_PKG_CONFIG([0.22])
GIO_MIN_VERSION=2.39.3
GJS_MIN_VERSION=1.39.0
GOBJECT_INTROSPECTION_MIN_VERSION=0.10.1
+LIBGDATA_MIN_VERSION=0.16.0
PKG_CHECK_MODULES(GNOME_MAPS, [
gio-2.0 >= $GIO_MIN_VERSION
gjs-1.0 >= $GJS_MIN_VERSION
gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_MIN_VERSION
+ libgdata >= $LIBGDATA_MIN_VERSION
])
diff --git a/src/application.js b/src/application.js
index 36526d2..ee20971 100644
--- a/src/application.js
+++ b/src/application.js
@@ -31,6 +31,7 @@ const GtkClutter = imports.gi.GtkClutter;
const Gio = imports.gi.Gio;
const Gtk = imports.gi.Gtk;
const GLib = imports.gi.GLib;
+const GData = imports.gi.GData;
const Main = imports.main;
const Format = imports.format;
@@ -53,6 +54,7 @@ let notificationManager = null;
let routeService = null;
let geoclue = null;
let geocodeService = null;
+let freebase = null;
const Application = new Lang.Class({
Name: 'Application',
@@ -115,6 +117,7 @@ const Application = new Lang.Class({
routeService = new RouteService.GraphHopper();
geoclue = new Geoclue.Geoclue();
geocodeService = new GeocodeService.GeocodeService();
+ freebase = new GData.FreebaseService();
},
_createWindow: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]