Also make the code surrounding this problem more legible, and remove Widget_ptr, which just confuses the issue.
We now have the beginnings of a flexible widget structure for the statusbar. For now, there is no behavioural change, and the interface is a bit crude, but watch this space!