Gtk-ruby error messages/ feature request

Recently I was trying to write a script which would guess types of required
arguments given to widget methods. It “nearly worked”, but I encoutered
problems when more tan one Gtk::Object was needed. You see I was getting
clues from error messages and then was retrying with different argument
type until it matched. But when I encountered more than one Gtk::object
needed in args I couldn’t get any clue from it. So my questions are…

Would it be possible to have better,more consistent error messaging? Is
this gtk-ruby or ruby itself.

Is there a way to programatically guess argument type needed?

Is there way to rescue gtk warnings?


Jacek Podkanski