[gnome-boxes/wip/exalm/swipe: 2/7] build: Require libhandy



commit bd4c496a160a7c883cc322e94ad22beef1275e3b
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Feb 19 18:56:10 2020 +0500

    build: Require libhandy
    
    This will allow to use HdyPaginator widget.

 src/main.vala   | 2 ++
 src/meson.build | 2 ++
 2 files changed, 4 insertions(+)
---
diff --git a/src/main.vala b/src/main.vala
index ff7e14f3..5182ad4d 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -79,6 +79,8 @@ public int main (string[] args) {
         error (err.message);
     }
 
+    Hdy.init (ref args);
+
     var app = new Boxes.App ();
 
     var exit_status = app.run (args);
diff --git a/src/meson.build b/src/meson.build
index 56e9874e..7d0a8f61 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -26,6 +26,7 @@ c_args = [
   '-DGETTEXT_PACKAGE="gnome-boxes"',
   '-DCACHEDIR="/var/cache/"',
   '-DG_LOG_DOMAIN="Boxes"',
+  '-DHANDY_USE_UNSTABLE_API=1',
 ]
 
 if get_option ('buildtype').contains ('debug')
@@ -148,6 +149,7 @@ dependencies = [
   dependency ('tracker-sparql-2.0'),
   dependency ('vte-2.91', version: '>= 0.40.2'),
   dependency ('webkit2gtk-4.0'),
+  dependency ('libhandy-0.0', version: '>= 0.0.11'),
   valac.find_library ('gio-2.0-workaround', dirs: vapi_dir),
   valac.find_library ('linux'),
   valac.find_library ('posix'),


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