[gjs] tests: Don't fail when Gtk+-4.0 is available



commit 6f283b0f42b604317258d5c4bbc66f82edd98154
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Mar 4 16:26:04 2017 +0100

    tests: Don't fail when Gtk+-4.0 is available
    
    We currently link with Gtk+-3.0, so that is the only version we can
    import without conflicts. As without version, gobject-introspection
    will pick the latest available version and Gtk+-4.0 may now be
    available, we thus need to explicitly request the correct version.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779594

 installed-tests/js/testGtk.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/installed-tests/js/testGtk.js b/installed-tests/js/testGtk.js
index 6848548..19ea06e 100755
--- a/installed-tests/js/testGtk.js
+++ b/installed-tests/js/testGtk.js
@@ -1,3 +1,5 @@
+imports.gi.versions.Gtk = '3.0';
+
 const ByteArray = imports.byteArray;
 const Gtk = imports.gi.Gtk;
 const Lang = imports.lang;


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