# Ruby 1.9.0: Gnome bindings broken

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-0-gnome-bindings-broken/124282>\
**Category:** Ruby\
**Created:** [December 27, 2007, 9:47am UTC](https://www.ruby-forum.com/t/ruby-1-9-0-gnome-bindings-broken/124282 "2007-12-27T09:47:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlo\_ESPrelz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f07891/32.png) [@Carlo\_ESPrelz](https://www.ruby-forum.com/u/Carlo_ESPrelz)\
**Post date:** [December 27, 2007, 9:47am UTC](https://www.ruby-forum.com/t/ruby-1-9-0-gnome-bindings-broken/124282/1 "2007-12-27T09:47:50Z")

</div>

I am glad to see that ruby 1.9 is a reality, with great work done in  
the performance department. Thanks to all the fine brains that were  
involved.

It is now difficult for me to test the new version because most of  
what I do uses GTK. And ruby-gnome2 does not compile with ruby  
1.9.0. Most of the changes that are needed are trivial, but there is  
one big problem in glib, where the main loop is defined  
(rbglib\_mainloop.c). This code does low-level manipulation of  
rb\_thread\_t structures, which are not public anymore.

I posted a message on the ruby-gnome2-devel-en mailing list three days  
ago, but I saw no echo to it. I tried to put my hands into the code  
but it is a bit mysterious to me (why add a g\_source? sources are  
supposed to monitor open files…).

I was also encountering crashes where the C code of ruby-gnome2 did  
things like:

proc\_mod\_eval = rb\_eval\_string(“lambda{|obj,proc|  
obj.module\_eval(&proc)}”);

(two instances in rbgobj\_object.c, one in rbgtkcontainer.c).

I can provide my current patchset (from the latest svn source), with  
which I can successfully compile the whole code, but with it, timeout  
or idle functions to be ran within the main GTK loop do not work, and  
the screen is not refreshed… Also, some changes are wild guesses.

Carlo

---

<div class="post-metadata">

**Author:** ![Carlo\_ESPrelz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f07891/32.png) [@Carlo\_ESPrelz](https://www.ruby-forum.com/u/Carlo_ESPrelz)\
**Post date:** [December 27, 2007, 11:26am UTC](https://www.ruby-forum.com/t/ruby-1-9-0-gnome-bindings-broken/124282/2 "2007-12-27T11:26:22Z")

</div>

> It is now difficult for me to test the new version because most of  
> what I do uses GTK.

I think we have to wait for the ruby-gnome maintainers on that.

---

<div class="post-metadata">

**Author:** ![Carlo\_ESPrelz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f07891/32.png) [@Carlo\_ESPrelz](https://www.ruby-forum.com/u/Carlo_ESPrelz)\
**Post date:** [December 27, 2007, 11:30am UTC](https://www.ruby-forum.com/t/ruby-1-9-0-gnome-bindings-broken/124282/3 "2007-12-27T11:30:20Z")

</div>

On 27 Dec 2007, at 08:47, Carlo E. Prelz wrote:

> I was also encountering crashes where the C code of ruby-gnome2 did  
> things like:
> 
> proc\_mod\_eval = rb\_eval\_string(“lambda{|obj,proc|  
> obj.module\_eval(&proc)}”);

I know nothing about gnome, but this looks like it might hit a known  
bug: [http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/14379](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/14379)

Fred
