# \[ANN\] Ruby-GNOME2 1.1.9

**URL:** <https://www.ruby-forum.com/t/ann-ruby-gnome2-1-1-9/225336>\
**Category:** Ruby-Gnome 2\
**Created:** [December 30, 2012, 3:50pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-1-9/225336 "2012-12-30T15:50:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 30, 2012, 3:50pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-1-9/225336/1 "2012-12-30T15:50:01Z")

</div>

Hi,

The Ruby-GNOME2 project released Ruby-GNOME2 1.1.9:  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?News\_20121230\_1](http://ruby-gnome2.sourceforge.jp/hiki.cgi?News_20121230_1)

This is a experimental GObject Introspection support release!

After GObject Introspection bindings is stable, you can  
create Ruby bindings for GObject based libraries such as  
Clutter. (You need to adjust auto generated APIs to adopt  
Rubyish API.)

The Ruby bindings is named gobject-introspection gem. You  
can install by:

% gem install gobject-introspection

I confirmed that Clutter sample Ruby script that is ported  
from Clutter’s sample C program works.

[https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gobject-introspection/sample/clutter-basic-actor.rb](https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gobject-introspection/sample/clutter-basic-actor.rb)

The sample Ruby bindings for Clutter is written about 10  
lines:

[https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gobject-introspection/sample/clutter.rb](https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gobject-introspection/sample/clutter.rb)

require “gobject-introspection”

module Clutter  
class Loader \< GObjectIntrospection::Loader  
private  
def load\_constant\_info(info)  
return unless /\A(?:KEY\_|COLOR\_)/ =~ info.name  
super  
end

```
  load("Clutter", Clutter)
end

```

end

(The sample Ruby bindings doesn’t adjust APIs. So They  
has non-Rubyish APIs.)

I’m trying cross compiling GObject Introspection to Windows  
by MinGW on Debian GNU/Linux sid but it will be  
failed… Because GObject Introspection requires Python that  
is not supported cross compiling by MinGW and needs to run  
.exe to generate .typelib and .gir. I hope that  
[ftp.gnome.org](http://ftp.gnome.org) distributes GObject Introspection binary…

== Changes

=== Ruby/GLib2

- Improvements
  - Renamed G\_DEF\_CLASS4 to G\_DEF\_CLASS\_WITH\_PARENT.  
G\_DEF\_CLASS4 is still usable but it is deprecated.

=== Ruby/GObjectIntrospection

- Added. It is still experimental.

## Thanks,

kou
