Moved profile setting on new tab a bit earlier, before show_all() call.

This commit is contained in:
Przemek Wesolek 2011-11-16 21:38:24 +01:00
parent f5cd4b053d
commit cef607817d
1 changed files with 2 additions and 2 deletions

View File

@ -208,6 +208,8 @@ class Notebook(Container, gtk.Notebook):
if cwd:
widget.set_cwd(cwd)
widget.spawn_child(debugserver=debugtab)
if profile:
widget.force_set_profile(None, profile)
signals = {'close-term': self.wrapcloseterm,
'split-horiz': self.split_horiz,
@ -258,8 +260,6 @@ class Notebook(Container, gtk.Notebook):
self.show_all()
if maker.isinstance(widget, 'Terminal'):
widget.grab_focus()
if profile:
widget.force_set_profile(None, profile)
def wrapcloseterm(self, widget):
"""A child terminal has closed"""