[kupfer: 25/31] triggers: Sort lexically



commit 4d244735ea4c4d667a6c0c4c732c5549ba70c0be
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Dec 31 00:04:45 2009 +0100

    triggers: Sort lexically

 kupfer/plugin/triggers.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/triggers.py b/kupfer/plugin/triggers.py
index 0968dc0..40ed9e9 100644
--- a/kupfer/plugin/triggers.py
+++ b/kupfer/plugin/triggers.py
@@ -49,6 +49,9 @@ class Triggers (Source):
 			label = gtk.accelerator_get_label(*gtk.accelerator_parse(keystr))
 			yield Trigger(target, u"%s (%s)" % (label or keystr, name))
 
+	def should_sort_lexically(self):
+		return True
+
 	@classmethod
 	def perform_trigger(cls, target):
 		try:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]