Gobject-introspection

Hi,

Have you heard of gobject-introspection?

http://live.gnome.org/GObjectIntrospection
http://live.gnome.org/PyBank

If I understand correctly, you write bindings for
gobject-introspection and you get bindings for all gobject-based
libraries (gtk, pango, gstreamer…) for free (or almost). It may be
interesting for the future of Ruby-GNOME2, especially since all the
binding code is written by hand.

However, the Ruby bindings have some particularities like extensive
usage of blocks. I wonder how gobject-introspection would deal with
that…

Mathieu

Hi,

In [email protected]
“[ruby-gnome2-devel-en] gobject-introspection” on Wed, 3 Sep 2008
12:05:07 +0900,
“Mathieu B.” [email protected] wrote:

However, the Ruby bindings have some particularities like extensive
usage of blocks. I wonder how gobject-introspection would deal with
that…

Do you get more information about GObject-introspection?
Does it just auto-generate GObject related bindings? (such
as property, signal, …)

Thanks,

kou

On Thu, Sep 11, 2008 at 1:24 PM, Kouhei S. [email protected] wrote:

Do you get more information about GObject-introspection?
Does it just auto-generate GObject related bindings? (such
as property, signal, …)

AFAIK it’s a way to “fully” describe all the API of a Gobject-based
lib. A bit like the .defs used by pygtk and friends, but complete and
endorsed by the library itself. But it needs to be investigated to get
a better understanding, my view might just be very superficial.


Guillaume C. - Guillaume Cottenceau

hi:

gobject-introspection or similar is used also in mono and gtkmm:
http://www.mono-project.com/GAPI

mono people use XML files to map the API in runtime.

gtkmm people use the python work…
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/chapter-wrapping-c-libraries.html

gobject-introspection will be really useful because with gobject
languages like VALA and GENIE we will have much gobject source code:
http://live.gnome.org/Vala
http://live.gnome.org/Genie

I hope an gobject ruby language in the future hehe…

regards.

I’m actually testing gobject-introspection on evolution-data-server. I
will report as soon as I have some results.

Cheers,
V. Segui

Vicent Seguí wrote:

I’m actually testing gobject-introspection on evolution-data-server. I
will report as soon as I have some results.

It’s been a year :-). Did you manage to get any (hopefully positive)
results?

Regards,
Matijs.

On Thu, Sep 11, 2008 at 04:27:28PM +0200, Martin (OPENGeoMap) wrote:

hi:

gobject-introspection or similar is used also in mono and gtkmm:
Redirecting…

mono people use XML files to map the API in runtime.

Note, this is not at runtime. This is used at compile time to go from
XML → generated C#. The XML files themselves are generated by parsing
the native headers. This is error prone and problematic, so there’s
actually a secondary “fixup” pass that takes the auto-generated XML and
applies some transforms to it to make it “clean” before the C# is
generated.

-pete