voldsoftware/toolbarbutton-jplib — pull request #21 by freaktechnik (2013-01-31 22:19:32+00:00)
Title: Better panel

This patch makes the button toggling when a panel is registered, as of #16. Additionally it makes the panel property writeable, so the panel of an existing button can be changed.
The only issue you may run into is caused by the panel showing animation, which temporarily overlays the button. The panel will, when the clicks are timed properly, open again instead of close.