Some minor code size optimization of the button widget.