Made toolbar_pool.register a valid decorator.
Merge pull request #2658 from tyrion/toolbar-register-decorator

Make toolbar_pool.register a valid decorator