# Gobject-introspection

**URL:** <https://www.ruby-forum.com/t/gobject-introspection/147558>\
**Category:** Ruby-Gnome 2\
**Created:** [September 3, 2008, 5:05am UTC](https://www.ruby-forum.com/t/gobject-introspection/147558 "2008-09-03T05:05:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathieu\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Post date:** [September 3, 2008, 5:05am UTC](https://www.ruby-forum.com/t/gobject-introspection/147558/1 "2008-09-03T05:05:45Z")

</div>

Hi,

Have you heard of gobject-introspection?

[http://live.gnome.org/GObjectIntrospection](http://live.gnome.org/GObjectIntrospection)  
[http://live.gnome.org/PyBank](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

---

<div class="post-metadata">

**Author:** ![Mathieu\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Post date:** [September 11, 2008, 1:24pm UTC](https://www.ruby-forum.com/t/gobject-introspection/147558/2 "2008-09-11T13:24:49Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] gobject-introspection” on Wed, 3 Sep 2008  
12:05:07 +0900,  
“Mathieu B.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![Mathieu\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Post date:** [September 11, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/gobject-introspection/147558/3 "2008-09-11T14:59:58Z")

</div>

On Thu, Sep 11, 2008 at 1:24 PM, Kouhei S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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. - [NVC Communication Obstacles Game](http://zarb.org/~gc/)

---

<div class="post-metadata">

**Author:** ![Mathieu\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Post date:** [September 11, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/gobject-introspection/147558/4 "2008-09-11T21:28:08Z")

</div>

hi:

gobject-introspection or similar is used also in mono and gtkmm:  
[http://www.mono-project.com/GAPI](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](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/Vala)  
[http://live.gnome.org/Genie](http://live.gnome.org/Genie)

I hope an gobject ruby language in the future hehe…

regards.

---

<div class="post-metadata">

**Author:** ![Mathieu\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Post date:** [September 22, 2008, 8:34am UTC](https://www.ruby-forum.com/t/gobject-introspection/147558/5 "2008-09-22T08:34:33Z")

</div>

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

Cheers,  
V. Segui

---

<div class="post-metadata">

**Author:** ![Mathieu\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Post date:** [September 28, 2009, 7:43am UTC](https://www.ruby-forum.com/t/gobject-introspection/147558/6 "2009-09-28T07:43:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mathieu\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Post date:** [September 11, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/gobject-introspection/147558/7 "2008-09-11T23:33:05Z")

</div>

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…](http://www.mono-project.com/GAPI)
> 
> 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
