From b9bd6dd19bbfa2c8123fbf80d4813517e6a91096 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Thu, 20 Jun 2013 19:48:22 +0200 Subject: [PATCH] Load and save window title in layouts --- terminatorlib/container.py | 3 +++ terminatorlib/terminator.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/terminatorlib/container.py b/terminatorlib/container.py index 75ca9c67..59acdb3b 100755 --- a/terminatorlib/container.py +++ b/terminatorlib/container.py @@ -260,6 +260,9 @@ the %s will also close all terminals within it.') % (reqtype, reqtype)) if hasattr(self, 'get_size'): layout['size'] = self.get_size() + if hasattr(self, 'title'): + layout['title'] = self.title.text + labels = [] if mytype == 'Notebook': for tabnum in xrange(0, self.get_n_pages()): diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 29eaa97c..23af0003 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -249,6 +249,8 @@ class Terminator(Borg): winy = int(parts[1]) if winx > 1 and winy > 1: window.resize(winx, winy) + if layout[windef].has_key('title'): + window.title.force_title(layout[windef]['title']) def layout_done(self): """Layout operations have finished, record that fact"""