From 48e6477a68c148b64513309d33c9b1a8a0a08713 Mon Sep 17 00:00:00 2001 From: Emmanuel Bretelle Date: Fri, 23 May 2008 20:39:26 +0100 Subject: [PATCH] fixing an issue where tab order was broken step to repro: - open terminator - open a new tab - in new tab, split axis - go to first tab - create a new tab - Ctrl-shift-N around and the order is not respected --- terminator | 8 ++++++-- terminatorlib/config.py | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/terminator b/terminator index c88d638a..9cd4a9f7 100755 --- a/terminator +++ b/terminator @@ -1171,8 +1171,12 @@ class Terminator: ## Now, we set focus on the new term notebook.set_current_page(-1) terminal._vte.grab_focus () - - index = self.term_list.index(widget) + + #adding a new tab, thus we need to get the + # last term of the previous tab and add + # the new term just after + sibling = self._notebook_last_term(notebook.get_nth_page(notebook.page_num(terminal)-1)) + index = self.term_list.index(sibling) self.term_list.insert (index + 1, terminal) return (True) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 979eae3a..751fef06 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -113,6 +113,7 @@ class TerminatorConfValuestore: 'ignore_hosts' : ['localhost','127.0.0.0/8','*.local'], 'encoding' : 'UTF-8', 'active_encodings' : ['UTF-8', 'ISO-8859-1'], + 'background_image' : '', } def __getattr__ (self, keyname):