Cleaning up rev 490

This commit is contained in:
Emmanuel Bretelle 2008-08-25 20:16:49 +01:00
parent f37324303b
commit f44955b926

View File

@ -805,11 +805,9 @@ class Terminator:
return self.get_first_parent_paned(parent, vertical)
def get_first_notebook_page(self, widget):
if isinstance (widget, gtk.Window):
if isinstance (widget, gtk.Window) or widget is None:
return None
parent = widget.get_parent()
if parent is None:
return None
if isinstance (parent, gtk.Notebook):
page = -1
for i in xrange(0, parent.get_n_pages()):