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

svn: r15379
This commit is contained in:
Espen Berg 2010-05-09 18:49:15 +00:00
parent 4a25ab7a25
commit 380490c6a2

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()