qubes.py: use label indexes starting from 1, not from 0

This is to unify with the convention used by Window Manager, where index == 0 is reserved for Dom0
This commit is contained in:
Joanna Rutkowska 2010-06-03 23:04:06 +02:00
parent 1f40650f08
commit 297d1d65d0

View File

@ -123,14 +123,14 @@ class QubesVmLabel(object):
# Globally defined lables # Globally defined lables
QubesVmLabels = { QubesVmLabels = {
"red" : QubesVmLabel ("red", 0), "red" : QubesVmLabel ("red", 1),
"orange" : QubesVmLabel ("orange", 1), "orange" : QubesVmLabel ("orange", 2),
"yellow" : QubesVmLabel ("yellow", 2), "yellow" : QubesVmLabel ("yellow", 3),
"green" : QubesVmLabel ("green", 3, color="0x5fa05e"), "green" : QubesVmLabel ("green", 4, color="0x5fa05e"),
"gray" : QubesVmLabel ("gray", 4), "gray" : QubesVmLabel ("gray", 5),
"blue" : QubesVmLabel ("blue", 5), "blue" : QubesVmLabel ("blue", 6),
"purple" : QubesVmLabel ("purple", 6, color="0xb83374"), "purple" : QubesVmLabel ("purple", 7, color="0xb83374"),
"black" : QubesVmLabel ("black", 7), "black" : QubesVmLabel ("black", 8),
} }
default_appvm_label = QubesVmLabels["red"] default_appvm_label = QubesVmLabels["red"]