Added the ability to assign update functions to buttons.
commit8fb0edc4978e5290eb52fb2b5cbef91421ddd635
authorPeter Lunicks <plunix@users.sourceforge.net>
Fri, 31 Dec 2010 05:52:31 +0000 (30 23:52 -0600)
committerPeter Lunicks <plunix@users.sourceforge.net>
Tue, 30 Oct 2012 22:39:10 +0000 (30 17:39 -0500)
tree6a91faab49dbd8b411d1e1b433d9f1d51b29d7ba
parent91359fc019c05a3b7716b66a2efd8eeec1e34c0e
Added the ability to assign update functions to buttons.

Specifically, added a third parameter to make_button_widget, which
is a function to be called when the buffer is changed and is intended
to allow the widgets to update themselves, for example decreasing their
opacity or hiding themselves when they are considered 'inactive'.
contrib/modules/mode-line-buttons.js