[gnome-shell] tests: require given version of Gtk



commit 02a7b0dcfd4828b347606ad098d877692839e859
Author: Lionel Landwerlin <lionel g landwerlin intel com>
Date:   Wed Feb 15 00:46:52 2017 +0000

    tests: require given version of Gtk

 tests/interactive/gapplication.js |    3 +++
 tests/interactive/test-title.js   |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/interactive/gapplication.js b/tests/interactive/gapplication.js
index 91b544d..60a3630 100755
--- a/tests/interactive/gapplication.js
+++ b/tests/interactive/gapplication.js
@@ -1,6 +1,9 @@
 #!/usr/bin/env gjs
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 
+imports.gi.versions.Gdk = '3.0';
+imports.gi.versions.Gtk = '3.0';
+
 const Gdk = imports.gi.Gdk;
 const Gio = imports.gi.Gio;
 const GLib = imports.gi.GLib;
diff --git a/tests/interactive/test-title.js b/tests/interactive/test-title.js
index 54bbc91..9dea45f 100755
--- a/tests/interactive/test-title.js
+++ b/tests/interactive/test-title.js
@@ -1,5 +1,7 @@
 #!/usr/bin/env gjs
 
+imports.gi.versions.Gtk = '3.0';
+
 const Gtk = imports.gi.Gtk;
 const Mainloop = imports.mainloop;
 


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