Because the window has a custom GtkHeaderBar
widget in place of the usual system decorations. When the “Close” button in the header bar is clicked, it will quit the main loop; control will be returned to the main()
function at that point, which will proceed to destroy the window.