I had some time today and tried to wrap my head
around the gir stuff that is coming up in the Gnome
universe.
This means for you that you can now generate PB
includes (imports) of most gnome libraries with a
simple script (which is actually written in Python
which should not disturb you much

As I have just written this code in a few hours, the
includes will not have alpha quality. Actually I only
tested the GDK-gir, which compiles.
You may notice, that structures are commented. This
has three reasons. First the PB compiler rejects those
that are already declared, second the structures actually
are different (a wee bit) and third they certainly contain
bugs.
Another to-do are prototypes (just because I am lazy),
documentation support and if popular enough, I may
write a version that produces nice interfaces instead
of imports.
It would be very nice if some people help me test the
imports, especially 64bit people!
The usage is quite simple. Run the following command
in the extracted directory and you will get a gdk2.0.pbi.
Maybe you need a "chmod +x gir2pb.py" first:
Code: Select all
./gir2pb.py gir-files/Gdk-2.0.gir > gdk2.0.pbi
http://remi.secretly.de/downloads/gir2pbV4.tar.bz2
Read more about GObjectIntrospection here:
http://live.gnome.org/GObjectIntrospection
greetz
remi