Hi,
I've found out this behaviour of Gtk::Builder just now.
Gtk::Builder#objects used to return an array with all the interface
objects loaded from a definition, now when calling the method it just
throws "(null) isn't supported (TypeError)".
Here's a test case.
require 'rubygems'
require 'libglade2'
definition = '<interface>
<requires lib="gtk+" version="2.16"/>
<object class="GtkWindow" id="newapp">
<property name="width_request">600</property>
<property name="height_request">400</property>
<property name="visible">True</property>
<child>
<placeholder/>
</child>
</object>
</interface>'
builder = Gtk::Builder.new
builder.add(definition)
builder.objects
Is this by design(i.e. Builder#objects is now deprecated, has a
different usage)?
--
Andrea Dallera
http://github.com/bolthar/freightrain
http://usingimho.wordpress.com
on 2010-08-27 12:14
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.