diff options
author | Thomas Martitz <kugel@rockbox.org> | 2015-09-30 07:15:25 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2015-09-30 07:15:25 +0200 |
commit | 312ccef24f7faaff3ba8dae178c915374ab6677f (patch) | |
tree | 32d6358ff4e246ae0b703805576c6e4cc2e40709 /test/gi/gi-test.py | |
parent | 4ec6923a5f5df2961fc16bd53eba10c81dded1e3 (diff) | |
download | scintilla-mirror-312ccef24f7faaff3ba8dae178c915374ab6677f.tar.gz |
Add a test suite to check gobject-introspection data
The test suite acts also as an example for downstream projects to generate
gobject-introspection data. A known-good .gir file is checked in for checking
results in the future. Lastly, a small python uses the gobject-introspection
data to create a small editor window.
The change to gtk/makefile is because scintilla needs to be in a shared library
for the python program. Therefore scintilla.a has to be compiled with -fPIC.
Diffstat (limited to 'test/gi/gi-test.py')
-rw-r--r-- | test/gi/gi-test.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/gi/gi-test.py b/test/gi/gi-test.py new file mode 100644 index 000000000..10cee8bc6 --- /dev/null +++ b/test/gi/gi-test.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +from gi.repository import Gtk +from gi.repository import Scintilla + +win = Gtk.Window() +win.connect("delete-event", Gtk.main_quit) +sci = Scintilla.Object() +win.add(sci) +win.show_all() +win.resize(400,300) +Gtk.main() |