summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-01-07 22:20:54 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-01-07 22:20:54 +0000
commitf6d76814b6ec0f19f46d4273d666f72f856a35be (patch)
tree3efd8c1957c6c2167e5b92427cf15610a6cdebe9 /alot
parentfe881c7ad53bbcd159fe53e325f06c30aca333a9 (diff)
add ThreadBuffer.get_messagewidgets
that returns all displayed message widgets
Diffstat (limited to 'alot')
-rw-r--r--alot/buffers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index 58a03213..c55096c7 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -274,6 +274,10 @@ class ThreadBuffer(Buffer):
(messagewidget, size) = self.body.get_focus()
return messagewidget
+ def get_messagewidgets():
+ """returns all message widgets contained in this list"""
+ return self.body.body.contents
+
def get_selected_message(self):
"""returns focussed :class:`~alot.message.Message`"""
messagewidget = self.get_selection()