get_children() is unhelpful in this context for some reason, use get_child() instead

This commit is contained in:
Chris Jones 2010-03-02 21:01:20 +00:00
parent cc77c3bc4e
commit 94f0fd194c
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ class Window(Container, gtk.Window):
def hoover(self):
"""Ensure we still have a reason to exist"""
if len(self.get_children()) == 0:
if not self.get_child():
self.emit('destroy')
def closeterm(self, widget):