From dfaaec54582002d7339afabc64728e0be8921920 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 19 Apr 2010 23:41:54 +0100 Subject: [PATCH] Store a Terminal's group in a layout, if it has one. Restore it too. Closes LP #566925 --- terminatorlib/terminal.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index c9e4b6cf..c2a7d5b7 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1276,6 +1276,8 @@ for %s (%s)' % (name, urlplugin.__class__.__name__)) layout['type'] = 'Terminal' layout['parent'] = parent layout['order'] = child_order + if self.group: + layout['group'] = self.group profile = self.get_profile() if layout != "default": # There's no point explicitly noting default profiles @@ -1289,6 +1291,10 @@ for %s (%s)' % (name, urlplugin.__class__.__name__)) """Apply our layout""" if layout.has_key('command') and layout['command'] != '': self.layout_command = layout['command'] + if layout.has_key('group') and layout['group'] != '': + # This doesn't need/use self.titlebar, but it's safer than sending + # None + self.really_create_group(self.titlebar, layout['group']) # There now begins a great list of keyboard event handlers def key_zoom_in(self):