From cef607817d12d9a64cda62f680c23cce2fa1cd89 Mon Sep 17 00:00:00 2001 From: Przemek Wesolek Date: Wed, 16 Nov 2011 21:38:24 +0100 Subject: [PATCH] Moved profile setting on new tab a bit earlier, before show_all() call. --- terminatorlib/notebook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/notebook.py b/terminatorlib/notebook.py index 1d0ae76f..9c9b20d6 100755 --- a/terminatorlib/notebook.py +++ b/terminatorlib/notebook.py @@ -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"""