issues 3915, 3950 and 3951 (and perhaps some more?) due to a change in pygtk appears to be fixed with this patch.

svn: r15378
This commit is contained in:
Espen Berg 2010-05-09 18:43:06 +00:00
parent 47199e72cb
commit 548a8ba315

View File

@ -212,7 +212,8 @@ class Glade(gtk.Builder):
queue = [toplevel]
while queue:
obj = queue.pop(0)
if obj.get_name() == value:
obj_id = gtk.Buildable.get_name(obj)
if obj_id == value:
return obj
if hasattr(obj, 'get_children'):
queue += obj.get_children()