Restore support for callables in SHOW_TOOLBAR_CALLBACK.

Fix #523.