From 7cc7ef80d347c43748bd3ada0be77fd26571c7b4 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 4 Mar 2010 11:59:36 +0000 Subject: [PATCH] Duck typing. This is a defence against Client Side Decorating in Gtk+ and other random weirdnesses --- terminatorlib/container.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminatorlib/container.py b/terminatorlib/container.py index 3c87c17d..96f8890b 100755 --- a/terminatorlib/container.py +++ b/terminatorlib/container.py @@ -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)