From 7d80561710daf4beff5a3cb085ee48b09d7da619 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Sat, 27 Feb 2010 14:04:50 +0100 Subject: [PATCH] Create paned layouts in a consistent order --- terminatorlib/paned.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terminatorlib/paned.py b/terminatorlib/paned.py index 19d0f099..aca38337 100755 --- a/terminatorlib/paned.py +++ b/terminatorlib/paned.py @@ -198,7 +198,9 @@ class Paned(Container): return num = 0 - for child_key in children: + keys = children.keys() + keys.sort() + for child_key in keys: child = children[child_key] if child['type'] == 'Terminal': continue @@ -218,8 +220,6 @@ class Paned(Container): err('unknown child type: %s' % child['type']) num = num + 1 - keys = children.keys() - keys.sort() self.get_child1().create_layout(children[keys[0]]) self.get_child2().create_layout(children[keys[1]])