From cc984ff6b1eaa5a653a85b3dfbb712363170bfec Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 13 Dec 2015 23:01:55 +0100 Subject: Fix issues raised by review and some more - remove any notion of deprecation of legacy symbol names - make sure typelib search path is set for test program - add separate test target to test/gi/makefile - improve g-ir-scanner call command line - fixed gtk2 support of test test/gi/gi-test.py --- test/gi/gi-test.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/gi/gi-test.py') diff --git a/test/gi/gi-test.py b/test/gi/gi-test.py index 10cee8bc6..6c775ea0c 100644 --- a/test/gi/gi-test.py +++ b/test/gi/gi-test.py @@ -1,6 +1,12 @@ #!/usr/bin/python -from gi.repository import Gtk +import gi +gi.require_version('Scintilla', '0.1') + +# Scintilla is imported before because it loads Gtk with a specified version +# this avoids a warning when Gtk is imported without version such as below (where +# it is imported without because this script works with gtk2 and gtk3) from gi.repository import Scintilla +from gi.repository import Gtk win = Gtk.Window() win.connect("delete-event", Gtk.main_quit) -- cgit v1.2.3