From: Thomas Zimmermann <[email protected]>

---
 shr_settings_modules/shr_device_timeouts.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/shr_settings_modules/shr_device_timeouts.py 
b/shr_settings_modules/shr_device_timeouts.py
index 902acac..bdd3fba 100644
--- a/shr_settings_modules/shr_device_timeouts.py
+++ b/shr_settings_modules/shr_device_timeouts.py
@@ -160,10 +160,12 @@ class Timeouts(module.AbstractModule):
             self.dbus_state = 0
             self.error()
 
+        tmptimeouts = sorted(self.timeouts.iteritems(), key=lambda (k,v): 
(v,k))
+
         if self.dbus_state:
-            for i in self.timeouts:
-                if not str(i) in ("awake","busy","none"):
-                    box = IncDecButtonBox(self.window, self.dbusObj, i, 
self.timeouts[i])
+            for i in tmptimeouts:
+                if not str(i[0]) in ("awake","busy","none"):
+                    box = IncDecButtonBox(self.window, self.dbusObj, i[0], 
i[1])
                     self.main.pack_end(box)
             self.main.show()
 
-- 
1.7.0.3

_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to