Cleaning up rev 490
This commit is contained in:
parent
f37324303b
commit
f44955b926
|
@ -805,11 +805,9 @@ class Terminator:
|
||||||
return self.get_first_parent_paned(parent, vertical)
|
return self.get_first_parent_paned(parent, vertical)
|
||||||
|
|
||||||
def get_first_notebook_page(self, widget):
|
def get_first_notebook_page(self, widget):
|
||||||
if isinstance (widget, gtk.Window):
|
if isinstance (widget, gtk.Window) or widget is None:
|
||||||
return None
|
return None
|
||||||
parent = widget.get_parent()
|
parent = widget.get_parent()
|
||||||
if parent is None:
|
|
||||||
return None
|
|
||||||
if isinstance (parent, gtk.Notebook):
|
if isinstance (parent, gtk.Notebook):
|
||||||
page = -1
|
page = -1
|
||||||
for i in xrange(0, parent.get_n_pages()):
|
for i in xrange(0, parent.get_n_pages()):
|
||||||
|
|
Loading…
Reference in New Issue