Duck typing. This is a defence against Client Side Decorating in Gtk+ and other random weirdnesses
This commit is contained in:
parent
94f0fd194c
commit
7cc7ef80d3
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue