[kupfer] clawsmail: Sort lexically



commit 00b7193207994cd60066aeacf412634dbf8cc0b1
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Mon Jan 11 17:58:18 2010 +0100

    clawsmail: Sort lexically

 kupfer/plugin/clawsmail.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/clawsmail.py b/kupfer/plugin/clawsmail.py
index 4010d63..b4bcf99 100644
--- a/kupfer/plugin/clawsmail.py
+++ b/kupfer/plugin/clawsmail.py
@@ -138,6 +138,11 @@ class ClawsContactsSource(AppLeafContentMixin, ToplevelGroupingSource,
 		yield ComposeMail()
 		yield ReceiveMail()
 
+	def should_sort_lexically(self):
+		# since it is a grouping source, grouping and non-grouping will be
+		# separate and only grouping leaves will be sorted
+		return True
+
 	def get_description(self):
 		return _("Contacts from Claws Mail Address Book")
 



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