From cfd4539a4aed709eb7a7932318239f0493979995 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Mon, 10 Aug 2015 20:40:49 +0200 Subject: [PATCH] (trunk-1609) Fix minor issue with Super+double-click on a splitter failing if tabs were in use --- terminatorlib/paned.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminatorlib/paned.py b/terminatorlib/paned.py index b42e6b86..917e3ba2 100755 --- a/terminatorlib/paned.py +++ b/terminatorlib/paned.py @@ -154,6 +154,7 @@ class Paned(Container): def do_redistribute(self, recurse_up=False, recurse_down=False): """Evenly divide available space between sibling panes""" + maker = Factory() #1 Find highest ancestor of the same type => ha highest_ancestor = self while type(highest_ancestor.get_parent()) == type(highest_ancestor): @@ -162,7 +163,8 @@ class Paned(Container): # (1b) If Super modifier, redistribute higher sections too if recurse_up: grandfather=highest_ancestor.get_parent() - if grandfather != self.get_toplevel(): + if maker.isinstance(grandfather, 'VPaned') or \ + maker.isinstance(grandfather, 'HPaned') : grandfather.do_redistribute(recurse_up, recurse_down) GObject.idle_add(highest_ancestor._do_redistribute, recurse_up, recurse_down)