Duck typing. This is a defence against Client Side Decorating in Gtk+ and other random weirdnesses

This commit is contained in:
Chris Jones 2010-03-04 11:59:36 +00:00
parent 94f0fd194c
commit 7cc7ef80d3

View File

@ -221,7 +221,8 @@ the %s will also close all terminals within it.') % (reqtype, reqtype))
global_layout[name] = layout
for child in self.get_children():
count = child.describe_layout(count, name, global_layout)
if hasattr(child, 'describe_layout'):
count = child.describe_layout(count, name, global_layout)
return(count)