[gnome-maps] Add libhandy-1 to dependencies



commit 79eeb26a94398d356dd8b7a11031116310d48dad
Author: James Westman <james flyingpimonster net>
Date:   Tue Aug 4 13:20:41 2020 -0500

    Add libhandy-1 to dependencies
    
    This is necessary for some upcoming changes to make Maps more adaptive.

 meson.build         |  1 +
 org.gnome.Maps.json | 19 ++++++++++++++++++-
 src/application.js  |  2 ++
 src/main.js         |  1 +
 4 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 525adfe5..a0cebe0e 100644
--- a/meson.build
+++ b/meson.build
@@ -30,6 +30,7 @@ gjs = dependency('gjs-1.0', version: '>= 1.50.0')
 girepository = dependency('gobject-introspection-1.0', version: '>= 0.10.1')
 gtk3 = dependency('gtk+-3.0', version: '>= 3.22.0')
 geoclue2 = dependency('geoclue-2.0', version: '>= 0.12.99')
+handy = dependency('libhandy-1', version: '>= 0.84.0')
 
 libmaps_deps = [
        dependency('gee-0.8', version: '>= 0.16.0'),
diff --git a/org.gnome.Maps.json b/org.gnome.Maps.json
index 0967f2ce..c6461e7b 100644
--- a/org.gnome.Maps.json
+++ b/org.gnome.Maps.json
@@ -207,6 +207,23 @@
                 }
             ]
         },
+        {
+            "name" : "libhandy",
+            "buildsystem" : "meson",
+            "config-opts" : [
+                "-Dgtk_doc=false",
+                "-Dtests=false",
+                "-Dexamples=false",
+                "-Dvapi=false",
+                "-Dglade_catalog=disabled"
+            ],
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/libhandy.git";
+                }
+            ]
+        },
         {
             "name" : "gnome-maps",
             "buildsystem" : "meson",
@@ -219,4 +236,4 @@
             ]
         }
     ]
-}
\ No newline at end of file
+}
diff --git a/src/application.js b/src/application.js
index c51fc421..e71a0c52 100644
--- a/src/application.js
+++ b/src/application.js
@@ -25,6 +25,7 @@ const GObject = imports.gi.GObject;
 const Gio = imports.gi.Gio;
 const Gtk = imports.gi.Gtk;
 const GtkClutter = imports.gi.GtkClutter;
+const Hdy = imports.gi.Handy;
 const WebKit2 = imports.gi.WebKit2;
 
 const CheckIn = imports.checkIn;
@@ -224,6 +225,7 @@ var Application = GObject.registerClass({
         super.vfunc_startup();
 
         GtkClutter.init(null);
+        Hdy.init();
 
         Utils.loadStyleSheet(Gio.file_new_for_uri('resource:///org/gnome/Maps/application.css'));
 
diff --git a/src/main.js b/src/main.js
index d93f0408..eac48f59 100644
--- a/src/main.js
+++ b/src/main.js
@@ -37,6 +37,7 @@ pkg.require({ 'cairo': '1.0',
               'Gtk': '3.0',
               'GtkChamplain': '0.12',
               'GtkClutter': '1.0',
+              'Handy': '1',
               'Rest': '0.7',
               'Soup': '2.4' });
 


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