[kupfer] thunderbird: Make it group with others
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] thunderbird: Make it group with others
- Date: Tue, 19 Jan 2010 15:07:24 +0000 (UTC)
commit aa18593cf7d3502f57a83bc39c50fb18eb8cdf96
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Jan 19 02:09:26 2010 +0100
thunderbird: Make it group with others
kupfer/plugin/thunderbird.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/thunderbird.py b/kupfer/plugin/thunderbird.py
index 0884f8e..f1852c4 100644
--- a/kupfer/plugin/thunderbird.py
+++ b/kupfer/plugin/thunderbird.py
@@ -62,13 +62,16 @@ class NewMailAction(Action):
def valid_for_item(self, item):
return bool(email_from_leaf(item))
-class ContactsSource(AppLeafContentMixin, Source, FilesystemWatchMixin):
+class ContactsSource(AppLeafContentMixin, ToplevelGroupingSource,
+ FilesystemWatchMixin):
appleaf_content_id = ('thunderbird', 'icedove')
def __init__(self, name=_("Thunderbird Address Book")):
- Source.__init__(self, name)
+ ToplevelGroupingSource.__init__(self, name, "Contacts")
+ self._version = 2
def initialize(self):
+ ToplevelGroupingSource.initialize(self)
abook_dir = support.get_addressbook_dir()
if not abook_dir or not os.path.isdir(abook_dir):
return
@@ -83,6 +86,9 @@ class ContactsSource(AppLeafContentMixin, Source, FilesystemWatchMixin):
yield ComposeMail()
+ def should_sort_lexically(self):
+ return True
+
def get_description(self):
return _("Contacts from Thunderbird Address Book")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]