[gnome-games] build-sys: Depends on Grilo 0.3



commit 1ea2699692a426966ee806f68692c36cdace76b2
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue May 10 16:59:56 2016 +0200

    build-sys: Depends on Grilo 0.3
    
    This will be used in the next commits to fetch metadata from the Web
    using Grilo.

 configure.ac    |    1 +
 src/Makefile.am |    1 +
 src/main.vala   |    8 +++++++-
 3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2c41f3b..85bde58 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,6 +49,7 @@ m4_include([plugins/wii-ware/configure.ac])
 PKG_CHECK_MODULES(GNOME_GAMES, [
        gio-2.0
        glib-2.0 >= $GLIB_MIN_VERSION
+       grilo-0.3
        gtk+-3.0
        retro-gobject-0.6
        retro-gtk-0.6
diff --git a/src/Makefile.am b/src/Makefile.am
index 647bbe0..9e26918 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -98,6 +98,7 @@ gnome_games_VALAFLAGS = \
        --target-glib=@GLIB_MIN_VERSION@ \
        --pkg gio-2.0 \
        --pkg glib-2.0 \
+       --pkg grilo-0.3 \
        --pkg gtk+-3.0 \
        --pkg tracker-sparql-1.0 \
        --pkg retro-gobject-0.6 \
diff --git a/src/main.vala b/src/main.vala
index fda631c..2e49a51 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -8,6 +8,12 @@ int main (string[] args) {
        Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
        Intl.textdomain (GETTEXT_PACKAGE);
 
+       Grl.init (ref args);
+
        var app = new Games.Application ();
-       return app.run (args);
+       var result = app.run (args);
+
+       Grl.deinit ();
+
+       return result;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]