diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-11-06 20:29:10 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-11-06 20:29:10 +0000 |
commit | 30d8de60fff69a0572a6b17c5fe8c6342472fbea (patch) | |
tree | d9ff783eb4201f34ce19403f8b01f35487f990e1 /alot/buffers.py | |
parent | 34e4e34cdf64e562332e2137ca7ebe4c9947522b (diff) | |
parent | fdc830645917453fdd64fc88a8a80e311e76bd3c (diff) |
Merge branch 'master' into envelope
Diffstat (limited to 'alot/buffers.py')
-rw-r--r-- | alot/buffers.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/alot/buffers.py b/alot/buffers.py index cec1abfa..dfa2b0b5 100644 --- a/alot/buffers.py +++ b/alot/buffers.py @@ -19,6 +19,7 @@ Copyright (C) 2011 Patrick Totzke <patricktotzke@gmail.com> import urwid from notmuch.globals import NotmuchError +import multiprocessing import widgets import settings @@ -171,10 +172,13 @@ class SearchBuffer(Buffer): except NotmuchError: self.ui.notify('malformed query string: %s' % self.querystring, 'error') - self.tids = [] - self.threadlist = IteratorWalker(iter(self.tids), + self.tids = multiprocessing.Pipe(False) + self.tids.put(None) + + self.threadlist = IteratorWalker(self.tids, widgets.ThreadlineWidget, dbman=self.dbman) + self.listbox = urwid.ListBox(self.threadlist) #self.threadlist.set_focus(focusposition) self.body = self.listbox |