Fix error in headerbar example

Fixes

    AttributeError: 'gi._gobject.GProps' object has no attribute 'set_show_close_button'