Excerpts from William Morgan's message of Sat Nov 24 15:47:34 -0500 2007: > Shouldn't be too hard to do this if you use catch the appropriate > events from UpdateManager.
I hadn't looked at the UpdateManager before... that's pretty cool. The problem is that the text in label-list-mode is created by LabelListMode#regen_text. It would be awkward to fiddle with @text outside of there. Since regen_text gets its numbers from Index.num_results_for, the other buffer has to sync to the index before the label list will know about it. So it seems to be just as effective to add 'def focus; reload; end' to LabelListMode. Handling the unread counts in LabelListMode seems dirty, anyway. You'd have to watch more than just the :read event, right? If a thread is archived from the inbox, for instance, the unread count for 'Inbox' should go down. So I haven't done any of that... but I found a related problem: the inbox doesn't update if you unarchive a thread elsewhere. I made a naïve patch that works in some cases.
sup-inbox-unarchived.diff
Description: Binary data
_______________________________________________ sup-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/sup-talk
