gtk_box_pack_* has different arguments in GTK+ 4, gtk_container_add has the same behaviour in both GTK+ 3 and 4.