changeset 1216:61f1b3d424cf

Change order of framelines. - In reversed order. - Later ones always at top of earier ones.
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 05 Jan 2011 19:27:05 +0800
parents 8e372ae69010
children 93acb8568ad3
files pyink/MBScene.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/MBScene.py	Wed Jan 05 18:53:54 2011 +0800
+++ b/pyink/MBScene.py	Wed Jan 05 19:27:05 2011 +0800
@@ -583,10 +583,10 @@
 	hbox.pack_start(label,expand=False, fill=True)
 	hbox.pack_start(line)
 	vbox.pack_start(hbox, False)
-	
-	if layer_idx != len(self._framelines):
-	    vbox.reorder_child(hbox, layer_idx + 1) # there is ruler at pos 0
-	    pass
+
+	# Put later one on the top of earier one, but after the ruler.
+	position = len(self._framelines) - layer_idx + 1
+	vbox.reorder_child(hbox, position)
 	
 	self._framelines[layer_idx: layer_idx] = [line]