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
1 changed files with 2 additions and 1 deletions

View File

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